Hi,<br>i trying to put a EditingTool Control in my map. My problem is that the editing toolbar doesn'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'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'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't paint anything.<br><br>what i am doing wrong?<br><br>thanks very much.
<br>The code is:<br>------------------------------------------------------------------------------------------------------------------<br><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml
</a>"><br> <head><br> <style type="text/css"><br> #map {<br> width: 800px;<br> height: 475px;<br> border: 1px solid black;<br> }<br> </style>
<br> <script src="../lib/OpenLayers.js"></script><br> <script src="../lib/Firebug/debug.js"></script><br> <script type="text/javascript"><br> <!--
<br> var lon = 5;<br> var lat = 40;<br> var zoom = 5;<br> var map, layer;<br><br> function init(){<br><br> map = new OpenLayers.Map( 'map', { controls: [] } );<br>
<br> layer = new OpenLayers.Layer.WMS( "PARCELA","<a href="http://192.168.212.20:84/cgi-bin/mapserv.exe?">http://192.168.212.20:84/cgi-bin/mapserv.exe?</a>",{layers: 'PARCELASDE'}, <br> {projection:"EPSG:23030",maxExtent:new
OpenLayers.Bounds(182295.49,4135348.22,225743.19,4171432.55),maxResolution:'100'} ); <br> vlayer = new OpenLayers.Layer.Vector( "Editable",{projection:"EPSG:23030",maxExtent:new OpenLayers.Bounds
(182295.49,4135348.22,225743.19,4171432.55),maxResolution:'100'} );<br> map.addLayer(vlayer); <br> map.addLayer(layer);<br> <br> <br> map.addControl(new OpenLayers.Control.PanZoomBar
());<br> map.addControl(new OpenLayers.Control.EditingToolbar(vlayer));<br> <br> //if (!map.getCenter())<br> map.zoomToMaxExtent();<br> }<br> // --><br> </script>
<br> </head><br> <body onload="init()"><br> <div id="panel"></div><br> <div id="map"></div><br> </body><br>---------------------------------------------------------------------------------------------------------------------------------------------------
<br><br>