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
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
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.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