[OpenLayers-Users] Several selectFeature control
Jacolin Yves
yjacolin at free.fr
Fri Oct 24 10:22:08 EDT 2008
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
More information about the Users
mailing list