It is defined as OpenLayers.Control.RectangleBox = OpenLayers.Class(OpenLayers.Control, {
type: OpenLayers.Control.TYPE_TOOL, armin On 15/03/2010 21:05, Frost89 wrote: > > 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. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users