You should check if the control has an actual type (using your favorite
debugger). If it is null then it might be necessary to specify the
controltype in the constructor, like this:
new OpenLayers.Control.DrawFeature(vectorLayer, OpenLayers.Handler.Polygon,
{
type: OpenLayers.Control.TYPE_TOOL
});
In this example my control's type was null by default, so I had to set the
type myself. This could be the same problem you're having.
--
View this message in context:
http://n2.nabble.com/Control-TYPE-TOOL-and-trigger-event-tp4739093p4739424.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users