I am an iPhone developer and a beginner in using Titanium studio. I started to learn Titanium few days back and worked on some samples which uses view, navgroup, images, etc. I’d like to step advance. Now I need to open a mapView in a window and annotate a pin on the user’s current location. I have opened a mapView now. I have no idea in getting the user’s latitude & longitude and to make annotation at that point. Help me to proceed further with any code or samples. Thanks in advance.
Share
you may get the geoposition by Ti.Geolocation.getCurrentPosition(). And for annotation try this example:
hope it helps 🙂