<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all openlayers developpers. <br>
Can I to modify the EditingToolbar class for include a button that adds
"OpenLayers.Control.SelectFeature" control on the map? <br>
There are any way to do this?<br>
<br>
This is my code, but I think I'm doing something wrong... the button
appears in the EditingToolbar but does nothing:<br>
<br>
<small><font face="Courier New, Courier, monospace">OpenLayers.Control.EditingToolbar
= OpenLayers.Class(OpenLayers.Control.Panel, {<br>
initialize: function (layer, options) {<br>
OpenLayers.Control.Panel.prototype.initialize.apply(this,
[options]);<br>
this.addControls([new OpenLayers.Control.Navigation()]);<br>
var controls = [new OpenLayers.Control.DrawFeature(layer,
OpenLayers.Handler.Point, {<br>
'displayClass': 'olControlDrawFeaturePoint'<br>
}), new OpenLayers.Control.DrawFeature(layer,
OpenLayers.Handler.Path, {<br>
'displayClass': 'olControlDrawFeaturePath'<br>
}), new OpenLayers.Control.DrawFeature(layer,
OpenLayers.Handler.Polygon, {<br>
'displayClass': 'olControlDrawFeaturePolygon'<br>
}), </font><font color="#3333ff"
face="Courier New, Courier, monospace">new
OpenLayers.Control.SelectFeature(layer)</font><font
face="Courier New, Courier, monospace">];<br>
this.addControls(controls);<br>
},<br>
draw: function () {<br>
var div = OpenLayers.Control.Panel.prototype.draw.apply(this,
arguments);<br>
this.activateControl(this.controls[0]);<br>
return div;<br>
},<br>
CLASS_NAME: "OpenLayers.Control.EditingToolbar"<br>
});</font></small><br>
<br>
<br>
Many thanks for your time.
</body>
</html>