Re: [Google Maps API v3] Re: Long click event?

2011-06-20 Thread Chris Broadfoot
Something like this? Did you try to implement this? It wasn't terribly difficult. http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjZsAIM -- http://twitter.com/broady On Mon, Jun 20, 2011 at 8:07 PM, Anna PS wrote: > Thanks, but this doesn't work for me: it fires on single click

[Google Maps API v3] Re: Long click event?

2011-06-20 Thread Anna PS
Thanks, but this doesn't work for me: it fires on single clicks and simply waits for 500ms before firing doSomethingUseful. I really need a 'taphold' event: i.e. only fires if the user clicks the map *and deliberately holds* it for 500ms. That way, you can be certain the user hasn't just touched

[Google Maps API v3] Re: Long click event?

2011-06-09 Thread Esa
On Jun 8, 8:34 pm, Anna PS wrote: > Long-click seems like a very handy event for mobile users Absolutely. I been doing it with something like: google.maps.event.addListener(map, 'mousedown', function(){ clearTimeout(map.pressButtonTimer); map.pressButtonTimer = setTimeout(function(){

[Google Maps API v3] Re: Long click event?

2011-06-09 Thread Esa
google.maps.event.addListener(map, 'mousedown', function(){ clearTimeout(map.pressButtonTimer); map.pressButtonTimer = setTimeout(function(){ doSomethingUseful(); }, 500); }); -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript