MapView.setAnnotations() not working as expected
Hi. Question here.
I'm wondering why using setAnnotations()
, although modifies MapView.annotations
, doesn't update the view.
Also, why addAnnotation()
/removeAnnotation()
, although modifies the view, doesn't update MapView.annotations
?
Thanks
PD: I'm using Android Emulator with API 2.1-update1
2 Answers
-
setAnnotations
does not work on Android. Use theannotations
property directly instead! -
If are comfortable in compiling the source there is a really nice user-community supplied patch that enables this - And is much faster than adding single annotations
http://developer.appcelerator.com/question/123043/addannotations-on-android