Map Annotations
Hi
Basically I am wanting the annotation information to display as soon as the pin lands on the map, instead of the user having to click on the pin to display it.
Can anyone shed any light on this?
Cheers
Jamesy
1 Answer
-
This does it for me.
var mapview = Titanium.Map.createView({ mapType: Titanium.Map.STANDARD_TYPE, region: {latitude:msg.fieldByName('lat'), longitude:msg.fieldByName('lon'), latitudeDelta:0.06, longitudeDelta:0.06}, animate:true, regionFit:true, userLocation:true, annotations:[id07]// this is my createAnnotation reference }); win.add(mapview); setTimeout(function(){ mapview.selectAnnotation(mapview.annotations[0].title,true); },1500);