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: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Thursday, June 16, 2011 2:16 PM To: Lime, Steve D (DNR) Cc: [email protected] 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 [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
