WobblyBob
WobblyBob

Reputation: 154

Is there a problem with Delphi TWebBrowser showing openstreetmap.org tiles in .png format

I am trying to incorporate a TwebBrowser into my Windows FMX application to display Leaflet Maps and openstreetmap .png tiles. The libraries for Leaflet Maps are available locally and when I view the html / javascript in Chrome or Edge, all is fine. The Map, the polygons and other markers are all displayed as they should be as per the Leaflet Maps Example. However when the url is loaded in TWebBrowser, the map is NOT displayed, but the polygons and markers display correctly. I can also call ShellExec to display the html / Java in the default PC browser. Am I missing something really basic here with TWebBrowser and FMX, or is there an issue with TWebBrowser and .png files, specifically openstreetmap.org .png files. Is there a better alternative other than going down the road of Google Maps ?

Any help would be much appreciated...

Upvotes: 0

Views: 284

Answers (0)

Related Questions