How to display KML files on a map?

warwound

Expert
Licensed User
Longtime User
Presumably by Google Map you mean a Google Maps API map in a WebView?

Take a look at the documentation: https://developers.google.com/maps/documentation/javascript/layers#KMLLayers.

I'd suggest you get that working in a desktop browser and then add the working code to your B4A project rather than trying to get it working on a device - debugging errors is far easier on a desktop browser.

There's been some recent changes on how Google renders KML and you can read about that here: https://groups.google.com/forum/?hl=en&fromgroups=#!topic/google-maps-js-api-v3/WQdwZ3jf6p4.

Martin.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…