hansemannn / titanium-googlemaps

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

MapView.getAnnotations( ) ? #91

Closed DouglasHennrich closed 7 years ago

DouglasHennrich commented 7 years ago

There's a way to get all annotations on the map ?

.getAnnotations() it's not working =/ I look through the module's class and I didn't find it exposed

Thanks

hansemannn commented 7 years ago

There is a property called markers which includes all the marker/annotation objects. It primarily used internally, but it should also be available from the public API. May be a good idea to call it annotations for parity. Try it out.

DouglasHennrich commented 7 years ago

Yea thats right... $.mapView.markers returns all annotations. Could be great to change it's name and expose the getAnnotations() function =)