Giter VIP home page Giter VIP logo

delphi_osmmap's Introduction

OSM MapControl

Delphi/Lazarus visual component for displaying a map. Could use any map tile provider (currently implemented OpenStreetMap, OpenTopoMap, HERE, Google). Also includes helper classes for storing and downloading map tiles. Demo project implements downloading map tiles from network.

โ— Alpha version, interface could change โ—

Compatibility

Tested on:

  • Delphi XE2 and 10.1, VCL, Windows
  • Lazarus 2.1.0 trunk & FPC 3.3.1 trunk, LCL, Windows / Linux

Tile providers

Adding a new tile provider is easy, just learn its API and take implemented providers as example. When you're done, create pull request and I'll happily merge it.

For description of tile URL template placeholders refer to OSM.TilesProvider.FormatTileURL function (or docs)

Project structure

  • OSM.SlippyMapUtils - utility functions, variables and types
  • OSM.TileStorage - classes TTileBitmapCache implementing cache of map tiles organized as a queue and TTileStorage implementing disc storage of map tiles.
  • OSM.NetworkRequest - utils and classes for network requesting of map tiles. Class TNetworkRequestQueue implements threaded non-blocking queue of network requests. Unit doesn't contain any real network request engine.
  • OSM.NetworkRequest.Synapse, OSM.NetworkRequest.WinInet, OSM.NetworkRequest.RTL contain concrete implementations of network requesting routines
  • OSM.MapControl contains classes TMapMark and TMapMarkList for managing a set of map points and TMapControl itself
  • OSM.TilesProvider - base abstract class of map tile provider.
  • OSM.TilesProvider.* contain concrete implementations of map tile providers

Full docs for all units listed above is available here

Third party

If you wish to use Synapse network engine and don't have it yet, you can take it from Releases section.

screen1

screen2

delphi_osmmap's People

Contributors

fr0st-brutal avatar littleearth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.