Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked June 7th 2010 by Gaurav Srivastva
  • callback
  • current
  • iphone
  • location
  • mapview
0 Comments

1 Answer

  • 25

    — answered June 19th 2012 by Bill Freedman
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.