[OpenLayers-Dev] Problem adding a new handler

Camilo Vargas cavargasru at gmail.com
Tue Jul 21 15:48:15 EDT 2009


Hello,

I'm trying to develop a new handler for one special app using openlayers.

The process which I followed was create one based on the RegularPolygon add
new javascript in the openlayers.js in the jsfiles array. But once I try the
new handler with:

new OpenLayers.Control.DrawFeature(crater,
OpenLayers.Handler.RegularPolygon1, {
        handlerOptions: {
             irregular: true
        }

I got this exception.

Exception: this.handler.setMap is not a function File:
http://127.0.0.1:8000/mars/lib/OpenLayers/Control.js Line: 236 Column: 0

Obviuslly i'm missing something but I don't really know what it is.

Thank you for your collaboration.

Kind Regards.

Camilo V.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20090721/ca40ba58/attachment.html


More information about the Dev mailing list