Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked November 12th 2010 by Mat Lop
  • addannotations
  • annotation
  • getannotations
  • mapview
  • removeannotations
  • setannotations
0 Comments

2 Answers

  • setAnnotations does not work on Android. Use the annotations property directly instead!

    — answered January 26th 2012 by Kristof Gruber
    permalink
    0 Comments
  • 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

    — answered January 26th 2012 by Nick Milner
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.