[OpenLayers-Users] Mobile Support: Handling a tap like a mouse click...

Lime, Steve D (DNR) steve.lime at state.mn.us
Fri Jun 17 11:06:36 EDT 2011


Chris: While using the handler approach works, behavior is different than registering the click event. I think it may have to do with the auto panning I do to center the map on a click but I have to dig into that. Using the click event didn't suffer the same issue. Is the click event registration not working on mobile devices (I tested with iPhone 4 and a Droid X) a bug? Here's a link to a version of my test app that uses event registration instead of a handler... http://maps1.dnr.state.mn.us/compass/mobile2/

Steve

-----Original Message-----
From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of christopher.schmidt at nokia.com
Sent: Thursday, June 16, 2011 2:16 PM
To: Lime, Steve D (DNR)
Cc: openlayers-users at lists.osgeo.org
Subject: Re: [OpenLayers-Users] Mobile Support: Handling a tap like a mouse click...


On Jun 16, 2011, at 12:05 PM, ext Lime, Steve D (DNR) wrote:

> Hi All: With the new mobile support how does one make a tap behave like a traditional mouse click. I don't
> need tap-pan support. In the past I'd simply register a click event and callback:
> 
>  map.events.register("click", map, myClickHandler);
> 
> It's not clear to how this is done with the touch events (using v11-rc1).  Any suggestions appreciated!

Steve,

Are you saying that on a mobile device, registering click events
doesn't work? have you tried using a click Handler instead?

-- Chris

_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users




More information about the Users mailing list