not getting callback on clicking on current location in mapview
Hi,
I created a mapView as follows,
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region: {latitude:33.74511, longitude:-84.38993, latitudeDelta:0.01, longitudeDelta:0.01},
animate:true,
regionFit:true,
userLocation:true,
top:43,
borderWidth: 1,
});
Then I gave a new region based on the current location as follows,
function updateCurrentLocation(location)
{
var loc = {
latitude: location.latitude,
longitude: location.longitude,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
animate: true
};
mapview.setLocation (loc);
}
So, this allows me to see the current location marked as a blue pin in the map. On clicking the pin, I see a small popup of "current location". However, I don't receive any callback for it. I need to get the event when current location is clicked on.
How can this be achieved? I'm on iphone simulator with titanium 1.3.0
Thanks
1 Answer
-
25