Fr0sT-Brutal / Delphi_OSMMap

Visual control for Delphi and Lazarus to display OSM map
Mozilla Public License 2.0
65 stars 22 forks source link
delphi lazarus mapbox openstreetmap osm

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.

:exclamation: Alpha version, interface could change :exclamation:

Features

Compatibility

Tested on:

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

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.

Screen shows Demo app built with Delphi and running on Windows using OSM tiles with random map marks, random track and square painted from callback.

screen1

Screen shows Demo app built with Delphi and running on Windows using Google tiles

screen2