<div dir="ltr"><div>Yes i use OL embeded with the horde framework <br><br></div><div>i replace it with OL stable just downloaded and i have this<br><br><span>error</span><span> </span><span><div>
<span></span><span>TypeError: this.map.addControl is not a function</span></div><span></span><div><table cellpadding="0" cellspacing="0"><tbody><tr><td>
<img src="" title="Stopper sur une erreur"></td><td><a><pre title="this.map.addControl(new OpenLayers.Control.EditingToolbar(vlay));">this.map.addControl(new OpenLayers.Control.EditingToolbar(vlay));<br><br>any<br></pre>
</a></td></tr></tbody></table></div></span>idea ? <br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 7:27 PM, Alexandre Dubé <span dir="ltr"><<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>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<div><div class="h5"><br>
<br>
<br>
On 13-06-27 10:57 AM, Tonton wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<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></span><span> </span><span>
<div><span></span><span>TypeError:
OpenLayers.Control.EditingToolbar is not a constructor<br>
<br>
</span></div>
<div><span>the console. log output : <br>
</span><a><span>Object
</span><span>{</span> EVENT_TYPES<span>=</span><span>[28]</span><span>, </span> options<span>=</span><span>{...}</span><span>, </span> name<span>=</span><span>"Editable"</span><span>, </span> <span></span><span>more...</span><span></span><span>} 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></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
Alexandre Dubé
Mapgears
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a>
</pre>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>