[OpenLayers-Users] Several selectFeature control
Jacolin Yves
yjacolin at free.fr
Mon Oct 27 11:02:14 EDT 2008
Thanks Christopher,
But I would like to select the polygon **and** point features at the same
time. I am working on cluster polygon, which was the purpose of what we
wanted to get at the begining of the developments of our application, ie see
point for some zoom level then display polygon feature when zoom in.
Y.
Le Friday 24 October 2008 18:13:22 Heidt, Christopher M., vous avez écrit :
> 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
--
Yves Jacolin
---
http://softlibre.gloobe.org
More information about the Users
mailing list