[OpenLayers-Users] OpenLayers Select Feature event not registering

Slawomir Messner slawomir.messner at staff.uni-marburg.de
Fri Jun 29 07:01:44 PDT 2012


Hi,
but box selection works? Do you have the newest OL version? The events 
are pretty new.
Regards
Slawomir

Am 29.06.2012 14:49, schrieb Rob Hyx:
> Hi all, I am having trouble trying to get an event to register with my
> SelectFeature object. I am trying to catch the 'boxselectionend' (or
> start) and it just won't fire. Here is my code:
>
> selectControl = new OpenLayers.Control.SelectFeature( vectorLayer, {
> box: true, onSelect:function(feature) { ...// This code works fine...
> } } );
> selectControl.events.on( { 'boxselectionstart':function(evt) {
> alert('Works!'); } } );
> map.addControl(selectControl);
>
> It says in the API that this event is supported:
> http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.events
>
> Thanks in advance for any and all help!
>


More information about the Users mailing list