Market JS Beta - Events?

Hi folks,


Can't seem to find what I'm looking for in Mapkit JS API Documentation. So, request any advice/sample code snippets that might explain some of the following...


1. How to get the geographic coordinate of a 'tap' event on the map (iOS devices) and the geographic coordinate of a mouse click, mouse-down and mouse-up event (non iOS devices)


2. The geographic coordinate of mouse at end of mouse-move event (non iOS devices)


Any advice/sample code snippets would be a great help


Regards

Accepted Reply

I just answered a very similar question with sample code in the "MapKit JS add annotation on user click?" topic. Hope it helps.

Replies

I just answered a very similar question with sample code in the "MapKit JS add annotation on user click?" topic. Hope it helps.

Hi EricG,


Great stuff!


Was using map.addEventListener() but now using map.element.addEventListener() and it works a treat.


Many thanks

Regards