[OpenLayers-Users] GetFeatureInfo on Single Click, Zoom In on Double Click

Ivan Grcic ivan.grcic at geofoto.hr
Wed Aug 20 15:10:55 EDT 2008


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 <jvanulde at nrcan.gc.ca> 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 <jvanulde at nrcan.gc.ca> 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
> > Users at openlayers.org
> > 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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Ivan Grcic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080820/153b454a/attachment.html


More information about the Users mailing list