Titanium Community Questions & Answer Archive

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

Pulling Lat/Long from DB

I am trying to pull map annotations from a database and can pull everything fine but the lat/long. So when I put it in the createAnnotation function the annotation does not show up. I have tried store the values as float, double, string but nothing works. Any idea about what type to store it as and how to get the values in there.

Thanks
Todd

— asked May 14th 2010 by Todd Tompkins
  • annotation
  • iphone
  • map
0 Comments

2 Answers

  • I am using float, but this is an external database (mySQL) i am yet to try using local storage

    — answered May 14th 2010 by Raul Riera
    permalink
    0 Comments
  • I'd try debugging it by verifying the type of the annotation lat/long prior to trying to use them in the map. Titanium.API.log(typeof(lat));

    — answered May 14th 2010 by Kevin Whinnery
    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.