Titanium Community Questions & Answer Archive

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

addAnnotations() works on iPhone but not Android

Trying to make an iPhone app work on Android. The addAnnotations() function doesn't work. Is there an alternate approach for Android?

— asked October 3rd 2010 by Tyler Queen
  • android
  • annotations
  • mapview
1 Comment
  • I'm having the same issue, addAnnotation doesn't work in Android and addAnnotations throws an error that it's not a function.

    — commented January 12th 2011 by Justin Toth

1 Answer

  • Get the latest CI trunk build and then map.addAnnotation will work. Just pass in the annotation object instead of an array of annotations.

    — answered January 12th 2011 by Justin Toth
    permalink
    2 Comments
    • I'm using Titanium Mobile 1.7.0 and it still says it's not defined

      — commented July 21st 2011 by Brad Proctor
    • I've tried using 1.7.1 and 1.7.2 with no luck. The bug was supposed to be fixed in 1.7, but I don't know whats going on.

      — commented August 11th 2011 by Joshua Ceaser
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.