Search code examples
androidgoogle-mapskmlgoogle-maps-api-2

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?


Solution

  • 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.