Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display kml file with Google Maps Android API v2 without parsing

I have a kml file (residing locally) which I want to show on Maps in an app I am developing. In my search, I have hit into this post: How to draw a path on a map using kml file? several times. I find this method rather lengthy.
I just want to show markers as defined by my kml file. Is there a way to do this without parsing the file? after all, both kml and Maps API are Google's. Isn't there a way to tell that API to load map based on a particular kml file?

like image 493
Jazib Avatar asked Nov 15 '13 12:11

Jazib


1 Answers

Is there a way to do this without parsing the file?

Not presently.

after all, both kml and Maps API are Google's.

So is Google Docs, but there is no API to dump a spreadsheet onto your map, either.

Isn't there a way to tell that API to load map based on a particular kml file?

Not at present, sorry. You may wish to keep an eye on this feature request to see if and when it gets added.

like image 141
CommonsWare Avatar answered Sep 24 '22 03:09

CommonsWare