Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TMS Google Mapping Components

402 views

Published on

TMS Software's Map Packs make it easy to integrate mapping into your applications. Based on the Google Maps and OpenStreet Maps sources. Join us for this webinar to learn how to take your mapping to the next level.

Works on VCL, FireMonkey (FMX), Windows, Android, iOS, macOS, Delphi and C++Builder.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

TMS Google Mapping Components

  1. 1. BrunoFierens info@tmssoftware.com Stayin touch http://www.facebook.com/tmssoftware @tmssoftwarenews @BrunoFierens Using Google Maps in Delphi VCL and FMX apps
  2. 2. Using Google Maps in Delphi apps • Introduction: Google Maps in Delphi apps • Architecture in a nutshell • Map options • Positioning, markers • Geocoding, reverse geocoding • Directions • GPX, GEOJson
  3. 3. Introduction: Google Maps in Delphi apps • Programmatic control of Google Maps via Delphi code • Wide range of geographical related functions • Available for - VCL apps for Windows - FMX apps for Windows, macOS, Android, iOS - IntraWeb apps for web • Easy to use Delphi classes, properties, methods. No Javascript required • Free liberal use of Google Maps, some use is paying https://console.developers.google.com/
  4. 4. Architecture in a nutshell WebBrowser control based • Navigate to https://maps.google.com • Injection of Javascript to interact with map via Google Maps Javascript API • Use WebBrowser interface to expose Javascript browser events as Delphi events • Additional use of Google geocoding / Reverse geocoding APIs
  5. 5. Map options • Map types: default, terrain, satellite, hybrid • Traffic • Streetview • Language • Controls: zoom, map type, streetview
  6. 6. Demo
  7. 7. Positioning • Map position: - WebGMaps.MapPanTo(), - WebGMaps.MapPanBy(X,Y) - WebGMaps.MapZoomTo(bounds) • Markers - WebGMaps.Markers.Add()
  8. 8. Demo
  9. 9. Geocoding, reversegeocoding • Translation of address to longitude & latitude and vice versa • Via TWebGMapsGeocoding, TWebGMapsReversegeocoding component • In VCL helper component: TWebGMapsLookupEdit
  10. 10. Demo
  11. 11. Directions • Calculating routes from point A to B • Optionally add waypoints • WebGMaps.RenderDirections() • WebGMaps.GetDirections() • WebGMaps.Directions result collection • WebGMaps.FillDirectionList()
  12. 12. Demo
  13. 13. GPX, GEOJson • Import and export GPX files WebGMaps.LoadGPSRoute(); WebGMaps.SavePathToGPSRoute(); • Import GEOJson files (http://geojson.org/) WebGMaps.LoadGeoJsonPolyLine(); WebGMaps.LoadGeoJsonPolygon();
  14. 14. Demo
  15. 15. Interesting links • TMS VCL WebGMaps http://www.tmssoftware.com/site/webgmaps.asp • TMS FMX WebGMaps http://www.tmssoftware.com/site/tmsfmxwebgmaps.asp • TMS IntraWeb WebGMaps http://www.tmssoftware.com/site/iwwebgmaps.asp • More videos https://www.youtube.com/user/tmssoftwareTV
  16. 16. Q&A

×