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

Eric Lemoine eric.c2c at gmail.com
Wed Aug 20 15:15:03 EDT 2008


You can look at the click-handler.html example. We should change the
GetFeatureInfo example and use the click handler. A patch would be
welcome :) Eric

2008/8/20, jvanulde <jvanulde at nrcan.gc.ca>:
>
> 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
>



More information about the Users mailing list