Hey. Tell me, please, how can I select a building in Google Maps in my application? Specifically, I tap on the building, it automatically draws a line along the contour of the building. thank
1 answer
I do not think that it will hold the line beautifully and with animation, but this possibility is also official.
You need to learn Importing KML data to a map .
This utility program allows you to convert KML objects into geographic shapes and add them as a layer on top of the map. To add a layer to the map, call the addLayerToMap () method. You can access the properties of a KML object by calling the getProperties () method on any Placemark, GroundOverlay, Document, or Folder object. For more information, see the documentation for the Google Maps Android KML utility .
Google example on Github
Note. This utility is currently available in beta. To report any problems or bugs, use the problem tracking system.
PS In any case, there is where to dig
