Skip to content

Touch event dont alert latitude #50

@sarahansen223h

Description

@sarahansen223h
  • 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions