Stopping iphone from asking current user position for map?
Hi,
I have a map view that displays a single annotation. Something like this:
var mapView = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region:{latitude:mapRow.lat, longitude:mapRow.lng, latitudeDelta: 0.05, longitudeDelta: 0.05},
animate:true,
regionFit:true,
annotations:[user]
});
The issue is that when running into a real device, it asks for user location while this is not necessary.
How can i stop it from asking for location?
Thanks!
2 Answers
-
Accepted Answer
Try this:
var mapView = Titanium.Map.createView({ mapType: Titanium.Map.STANDARD_TYPE, region:{latitude:mapRow.lat, longitude:mapRow.lng, latitudeDelta: 0.05, longitudeDelta: 0.05}, animate:true, regionFit:true, userLocation:false, annotations:[user] });
-
Hi Fernando,
I'm not sure what the default value for userLocation is, but try adding the userLocation property with the value false.