<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hello adidas,</div><div><br></div><div>Based on the image you need to define a layer, the code below is the relevant part of your code? Also, are you compressing your code? More info would help to help you.</div><div><br></div><div>Cheers,</div><div><br>Sent from my iRon</div><div><br>On May 12, 2013, at 11:35, "adidas" <<a href="mailto:xkadidas@gmail.com">xkadidas@gmail.com</a>> wrote:<br><br></div><div>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi! I'm trying to make a panel with the tools, but does not work.<br>
<i>var panel = new OpenLayers.Control.Panel({</i><i><br>
</i><i> createControlMarkup: function(control) {</i><i><br>
</i><i> var button = document.createElement('button'),</i><i><br>
</i><i> iconSpan = document.createElement('span'),</i><i><br>
</i><i> textSpan = document.createElement('span');</i><i><br>
</i><i> iconSpan.innerHTML = ' ';</i><i><br>
</i><i> button.appendChild(iconSpan);</i><i><br>
</i><i> if (control.text) {</i><i><br>
</i><i> textSpan.innerHTML = control.text;</i><i><br>
</i><i> }</i><i><br>
</i><i> button.appendChild(textSpan);</i><i><br>
</i><i> return button;</i><i><br>
</i><i> }</i><i><br>
</i><i> }</i><i><br>
</i><i>);</i><i><br>
</i><i><br>
</i><i>var editCable = new
OpenLayers.Control.ModifyFeature(lineLayer, {</i><i><br>
</i><i> title: "Edit Cable",</i><i><br>
</i><i> text: 'Edit<br>Cable',</i><i><br>
</i><i> vertexRenderIntent: 'temporary',</i><i><br>
</i><i> displayClass: "olControlMoveClosure",</i><i><br>
</i><i> modified: true,</i><i><br>
</i><i> createVertices: true,</i><i><br>
</i><i> mode: OpenLayers.Control.ModifyFeature.RESHAPE</i><i><br>
</i><i>});</i><i><br>
</i><i><br>
</i><i>panel.addControls([editCable]);</i><i><br>
</i><i>map.addControl(panel);</i><i><br>
</i><i>popupCableCon.activate();</i><br>
<br>
This error occurs when i declare editCable, but do not swear on this
line, swear on line 1591 file OpenLayers.js. What's the problem?<br>
Thanks!<br>
Image with error: <a href="http://f4.s.qip.ru/qGVcUy1m.png">http://f4.s.qip.ru/qGVcUy1m.png</a><br>
</div><div><span>_______________________________________________</span><br><span>Users mailing list</span><br><span><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a></span><br><span><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></span><br></div></body></html>