[OpenLayers-Users] Control TYPE_TOOL and trigger event

Armin Burger armin.burger at gmx.net
Mon Mar 15 16:13:34 EDT 2010


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.



More information about the Users mailing list