[OpenLayers-Users] Several selectFeature control
Heidt, Christopher M.
CHRISTOPHER.M.HEIDT at saic.com
Fri Oct 24 10:28:53 EDT 2008
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/>
_______________________________________________
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/754f6249/attachment.html
More information about the Users
mailing list