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
2 Answers
-
I am using float, but this is an external database (mySQL) i am yet to try using local storage
-
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));