[OpenLayers-Dev] Right Mouse click for WMSGetFeatureInfo

Cédric Moullet cedric.moullet at camptocamp.com
Wed Mar 17 17:17:38 EDT 2010


Hi,
I'd like to have the OpenLayers.Control.WMSGetFeatureInfo working on the
right mouse click instead of the left mouse click.
I tried to modify it in the following way (
http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Control/WMSGetFeatureInfo.js#L195
)

this.handler = new OpenLayers.Handler.Click(this,
                {*rightclick*: this.getInfoForClick},
this.handlerOptions.click || {});

But without success. Could you give me a hint in order to support right
mouse click with this control ?

Thanks,
Cédric

-- 
Geospatial Director Camptocamp SA
Cédric Moullet
PSE A
CH-1015 Lausanne
www.camptocamp.com  / www.mapfish.org / twitter.com/cedricmoullet /
mapfishblog.blogspot.com/

+41 79 759 69 83 (mobile)
+41 21 619 10 21 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100317/46d7559b/attachment.html


More information about the Dev mailing list