javascript - Touch event doesn't alert latitude -


i'm trying use webgl earth 2.0 in 1 of new projects. library

can found here: https://github.com/webglearth/webglearth2

- let want click on globe , browser must alert me latitude of place have clicked. did this:

earth.on('click', fire);  var fire = function(e) {  alert('you clicked @ ' +e.latitude); }; 

it worked on web browser , returned latitude, did not work on mobile( iphone ) browser.

so did next instead:

 earth.on('touchstart', fire);   var fire = function(e) {      alert('you clicked @ ' +e.latitude);     }; 

it works on mobile browser (iphone), problem doesn't return latitude. instead alerts me "null". want return latitude when touch globe in mobile browser.

please me make work want...

i stumbled upon while testing/researching webgl earth. seems if fixed on last year using lat/lng - values should work.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -