<div dir="ltr"><div class="gmail_quote"><br><div dir="ltr"><div><div><div>You right ! <br><br></div>i've map in my map object so <br><br></div>this.map.map.addcontrol working !<br><br></div>regards<br></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jun 28, 2013 at 2: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>Use Firebug or any browder dev tools to
inspect your code. Put break points, watch your variables content
and you'll discover what's wrong.<br>
<br>
HTH,<br>
<br>
Alexandre<div><div><br>
<br>
<br>
On 13-06-28 05:13 AM, Tonton wrote:<br>
</div></div></div><div><div>
<blockquote type="cite">
<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 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));
any
</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><br>
<br>
<br>
On 13-06-27 10:57 AM, Tonton wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<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><font color="#888888">
</font></span></pre>
<span><font color="#888888"> </font></span></blockquote>
<span><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" target="_blank">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>
</blockquote>
<br>
<br>
<pre cols="72">--
Alexandre Dubé
Mapgears
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a>
</pre>
</div></div></div>
</blockquote></div><br></div>
</div></div></div><br></div>