Touch event dont alert latitude

  • Let say i want to click on the globe and the browser most alert me back the latitude of the place that i have clicked. What i did was this:

earth.on('click', fire);

var fire = function(e) {

alert('You clicked at ' +e.latitude);
};
it worked on the web browser and retuned the latitude, but it did not work on the mobile( iPhone ) browser.

so what i did next was this instead:

earth.on('touchstart', fire);

var fire = function(e) {

alert('You clicked at ' +e.latitude);
};

it works on the mobile browser (iPhone), but the problem it dont return latitude. Instead it alert me with "NULL". I want it to return the latitude when i touch the globe in the mobile browser.

Please fix it