[OpenLayers-Users] TypeError: OpenLayers.Control.EditingToolbar is not a constructor
Tonton
to.tonton at gmail.com
Thu Jun 27 07:57:33 PDT 2013
I try to add editing tools bare after the map was created
var vlay = this.map_layers[1];
console.log(vlay);
var editing = new OpenLayers.Control.EditingToolbar(vlay);
this.map.addControl(editing);
and systematicaly i had this error message
TypeError: OpenLayers.Control.EditingToolbar is not a constructor
the console. log output :
Object { EVENT_TYPES=[28], options={...}, name="Editable", more...} is the
layer i want to draw on
What i 'am doing wrong ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130627/39826c55/attachment.html>
More information about the Users
mailing list