<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
Are you using a builded version of OpenLayers, like
OpenLayers.light.debug.js maybe ? If so the
OpenLayers.Control.EditingToolbar might not included in the build
you're using. If you enter "OpenLayers.Control" in your navigator
dev tool, you'll see what controls your build contains.<br>
<br>
That would be the first thing I'd check. Try switching to
OpenLayers.debug.js or OpenLayers.js to see if it works.<br>
<br>
HTH,<br>
<br>
Alexandre<br>
<br>
<br>
On 13-06-27 10:57 AM, Tonton wrote:<br>
</div>
<blockquote
cite="mid:CAPiE3MHj11tG-jmS3WdTXDshL2B_uKj5qbTGP94T1sME1qD9Wg@mail.gmail.com"
type="cite">
<div dir="ltr">I try to add editing tools bare after the map was
created<br>
<div><br>
var vlay = this.map_layers[1];<br>
console.log(vlay);<br>
var editing = new
OpenLayers.Control.EditingToolbar(vlay);<br>
this.map.addControl(editing);<br>
<br>
</div>
<div>and systematicaly i had this error message <br>
<br>
<span class=""></span><span> </span><span class="">
<div class=""><span class=""></span><span class="">TypeError:
OpenLayers.Control.EditingToolbar is not a constructor<br>
<br>
</span></div>
<div class=""><span class="">the console. log output : <br>
</span><a moz-do-not-send="true" class=""><span class="">Object
</span><span class="">{</span> EVENT_TYPES<span class="">=</span><span
class="">[28]</span><span class="">, </span> options<span
class="">=</span><span class="">{...}</span><span
class="">, </span> name<span class="">=</span><span
class="">"Editable"</span><span class="">, </span> <span
class=""></span><span class="">more...</span><span
class=""></span><span class="">} is the layer i want
to draw on <br>
<br>
</span></a></div>
</span></div>
<div>What i 'am doing wrong ? <br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>