[OpenLayers-Users] How to select on CTRL key + click

Alexandre Dube adube at mapgears.com
Mon Nov 24 10:40:12 EST 2008


Eric Lemoine wrote:
>
> Handler.Feature just has no keyMask support. Take a look at the
> attached patch (untested!).
>
> Cheers,
> --
> Eric
>   
Hey Eric,

  That did the trick.  Here's how the object looks like :

        this.handler = new OpenLayers.Handler.Feature(
            this, layer,
            { click: this.clickFeature },
            { keyMask:OpenLayers.Handler.MOD_CTRL }
        );

  Thanks a lot,

-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list