[OpenLayers-Users] Several selectFeature control
Heidt, Christopher M.
CHRISTOPHER.M.HEIDT at saic.com
Fri Oct 24 12:13:22 EDT 2008
what i had to resort to was a toggle button on my gui that switched back and forth between my two selectcontrols.
It actually workied out better for me because when you toggle selectcontrols it brings that layer to the foreground, which makes it nice and easy to see what your selecting, especially if you have alot of overlaping geometries.
________________________________
From: users-bounces at openlayers.org on behalf of Jacolin Yves
Sent: Fri 10/24/2008 11:35 AM
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] Several selectFeature control
Hi,
Thanks Christopher. I will try to find something else as I am using clustered
strategies for my vector layers, I can't display polygones and their
centroids on the same vector layer.
Best regards,
Y.
Le Friday 24 October 2008 16:28:53 Heidt, Christopher M., vous avez écrit :
> you can only activaete one select control at a time.
>
> ________________________________
>
> From: users-bounces at openlayers.org on behalf of Jacolin Yves
> Sent: Fri 10/24/2008 10:22 AM
> To: users at openlayers.org
> Subject: [OpenLayers-Users] Several selectFeature control
>
>
>
> Hi,
>
> Is it possible to create more than one selectFeature control for several
> vector layer? Something like this:
> ctl_pt = new OpenLayers.Control.SelectFeature(
> buildingsPt,
> {
> callbacks:
> {
> 'over': __hbsMouseOverFeatureCallback,
> 'out': __hbsMouseOutFeatureCallback
> }
> }
> );
> map.addControl(ctl_pt);
> ctl_pt.activate();
>
> ctl_poly = new OpenLayers.Control.SelectFeature(
> buildingsPoly,
> {
> callbacks:
> {
> 'over': __hbsMouseOverFeatureCallback,
> 'out': __hbsMouseOutFeatureCallback
> }
> }
> );
> map.addControl(ctl_poly);
> ctl_poly.activate();
>
> The second one is not activated. Where am I wrong?
>
> Thanks,
>
> Y.
> --
> Yves Jacolin
> ---
> http://softlibre.gloobe.org <http://softlibre.gloobe.org/> <http://softlibre.gloobe.org/>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Yves Jacolin
---
http://softlibre.gloobe.org <http://softlibre.gloobe.org/>
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081024/2bad180a/attachment.html
More information about the Users
mailing list