Hi, this should be pretty clear:
http://openlayers.org/dev/examples/click-handler.html Greets On Wed, Aug 20, 2008 at 4:47 PM, jvanulde <[EMAIL PROTECTED]> wrote: > > Hi Eric, > > I am following the demo so I am using the following: > > map.events.register('click', map, function (e) { ... } > > Is there an example of using the OpenLayers.Handler.Click that does more or > less the same thing that I can look at? > > Thank you for your help. > > Joost > > > Eric Lemoine-3 wrote: > > > > On Wed, Aug 20, 2008 at 4:45 AM, jvanulde <[EMAIL PROTECTED]> wrote: > >> > >> Hi all, > >> > >> Currently I have a singleclick handler that does a getFeatureInfo > request > >> on > >> an active layer (as per the demo). Of course everytime I double click > to > >> zoom and recenter the map a getFeatureInfo request is made. Is there an > >> elegant way to deal with this? Ideally, I don't want a getFeatureInfo > >> request to be made everytime a user double clicks the map to zoom in and > >> recenter. Any suggestions would be helpful. > > > > Hi > > > > Do you use OpenLayers.Handler.Click for registering the getFeatureInfo > > handler? If you use that I guess double-clicking for zooming shouldn't > > trigger getFeatureInfo. Unless I'm missing something; in that case, > > some code would help me. > > > > Regards, > > -- > > Eric > > _______________________________________________ > > Users mailing list > > [email protected] > > http://openlayers.org/mailman/listinfo/users > > > > > > -- > View this message in context: > http://www.nabble.com/GetFeatureInfo-on-Single-Click%2C-Zoom-In-on-Double-Click-tp19062128p19069989.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Ivan Grcic
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
