hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium
Other
87 stars 26 forks source link

Add support for KML/GeoJSON #98

Closed mcongrove closed 7 years ago

mcongrove commented 7 years ago

Any mapping beyond simple points and lines requires support for shape file importing. Google Map iOS SDK supports import for KML and/or GeoJSON. Would be a great additional feature.

https://developers.google.com/maps/documentation/ios-sdk/utility/kml-geojson

hansemannn commented 7 years ago

You can pass a JSON-payload using the mapStyle property already, but the KML notation is something else. Marking as feature-proposal, but it's not planned, yet.

hansemannn commented 7 years ago

Had a few minutes at the airport, try it out: https://github.com/hansemannn/titanium-google-maps/pull/99

mcongrove commented 7 years ago

Works great. Any chance of adding a method to remove a KML/GeoJSON overlay?

hansemannn commented 7 years ago

There is, but with the way I hacked it yesterday it doesn't. I will work on making it an own proxy "Renderer" that then will have the methods render, clear.

hansemannn commented 7 years ago

Updated, closing this issue.