Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new 'pointer' property to the map #765

Closed
wants to merge 1 commit into from

Conversation

fredj
Copy link
Member

@fredj fredj commented Jun 5, 2013

pointer is the coordinate of the mouse or touch.

@fredj
Copy link
Member Author

fredj commented Jun 5, 2013

setPointer should not be exported

@fredj fredj closed this Jun 5, 2013
@fredj fredj reopened this Jun 5, 2013
@tschaub
Copy link
Member

tschaub commented Jun 5, 2013

What will this be for multi-touch?

@fredj
Copy link
Member Author

fredj commented Jun 5, 2013

the coordinate of the first touch (index 0). done by goog closure.

pointer is the coordinate of the mouse or touch.
@fredj
Copy link
Member Author

fredj commented Jun 6, 2013

Not sure this is really needed, coordinates are available in the event object:

map.on('mousemove', function(event) {
  var coordinates = event.getCoordinate();
});

@fredj fredj closed this Jun 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants