Hi,<br>i trying to put a EditingTool Control in my map. My problem is that the editing toolbar doesn&#39;t work correctly.<br>I need to use a projection EPSG:23030 on the layers that i show,<br>because of that, i need to put on the vector layer the projection, a maxExtent and a resolution, in other cases
<br>it doesn&#39;t paint anything. <br>In the cases that paint something, the behaviour is:<br>1) It paints the features but only when i press double click (at the time i am drawing it doesn&#39;t paint anything), in big scales.
<br>2) In small scale the behaviour is different, it shows me the features at the same time i am drawing but when i do a double click<br>it doesn&#39;t paint anything.<br><br>what i am doing wrong?<br><br>thanks very much.
<br>The code is:<br>------------------------------------------------------------------------------------------------------------------<br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml
</a>&quot;&gt;<br>&nbsp; &lt;head&gt;<br>&nbsp;&nbsp;&nbsp; &lt;style type=&quot;text/css&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #map {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 800px;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 475px;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border: 1px solid black;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &lt;/style&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;script src=&quot;../lib/OpenLayers.js&quot;&gt;&lt;/script&gt;<br>&nbsp;&nbsp;&nbsp; &lt;script src=&quot;../lib/Firebug/debug.js&quot;&gt;&lt;/script&gt;<br>&nbsp;&lt;script type=&quot;text/javascript&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var lon = 5;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var lat = 40;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var zoom = 5;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var map, layer;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function init(){<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map = new OpenLayers.Map( &#39;map&#39;, { controls: [] } );<br>&nbsp;&nbsp;&nbsp;&nbsp; 
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; layer = new OpenLayers.Layer.WMS( &quot;PARCELA&quot;,&quot;<a href="http://192.168.212.20:84/cgi-bin/mapserv.exe?">http://192.168.212.20:84/cgi-bin/mapserv.exe?</a>&quot;,{layers: &#39;PARCELASDE&#39;}, <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {projection:&quot;EPSG:23030&quot;,maxExtent:new 
OpenLayers.Bounds(182295.49,4135348.22,225743.19,4171432.55),maxResolution:&#39;100&#39;} );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp; vlayer = new OpenLayers.Layer.Vector( &quot;Editable&quot;,{projection:&quot;EPSG:23030&quot;,maxExtent:new OpenLayers.Bounds
(182295.49,4135348.22,225743.19,4171432.55),maxResolution:&#39;100&#39;} );<br>&nbsp;&nbsp;&nbsp; map.addLayer(vlayer);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; map.addLayer(layer);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addControl(new OpenLayers.Control.PanZoomBar
());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addControl(new OpenLayers.Control.EditingToolbar(vlayer));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;//if (!map.getCenter())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.zoomToMaxExtent();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/script&gt;
<br>&nbsp; &lt;/head&gt;<br>&nbsp; &lt;body onload=&quot;init()&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;div id=&quot;panel&quot;&gt;&lt;/div&gt;<br>&nbsp;&nbsp;&nbsp; &lt;div id=&quot;map&quot;&gt;&lt;/div&gt;<br>&nbsp; &lt;/body&gt;<br>---------------------------------------------------------------------------------------------------------------------------------------------------&nbsp;  
<br><br>