<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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>
</body>
</html>