Dear all, at present the graphic-name.html example from OL2.9 examples shows us how to add a custom graphic name, as follows:<br><pre id="line1">OpenLayers.Renderer.symbol.lightning = [0,0, 4,2, 6,0, 10,5, 6,3, 4,5, 0,0];<br>
and <br>OpenLayers.Renderer.symbol.rectangle = [0,0, 4,0, 4,10, 0,10, 0,0];<br><br>1. My first question is , how can we add a feature with multiple vector features, e.g. i found an example in geoext 0.7 <br><a href="http://dev.geoext.org/trunk/geoext/examples/renderer.html">http://dev.geoext.org/trunk/geoext/examples/renderer.html</a> which can draw multiple vectors in a single feature as following:<br>
<br><label for="wkt">Geometry Well-Known Text : </label>POLYGON((1 30, -33 10, -39 -21, 1 -41, 23 -22, 27 15, 1 30), (0 10, -14 0, -4 -24, 12 -8, 0 10))<br><br>How we can achieve the same in OL?<br><br>2. I want to achieve following: Once i add a vector layer feature on a click event, the actual symbol is drawn above the point of click, <br>
and it is connected with the point of click with a vector line. Also when i drag the drawn vector feature the line&#39;s one end remains at the <br>point of click, while the other end is &#39;fastened&#39; to the vector feature. How this can be achieved in OL ? <br>
<br>Thanks in advance....<br><br>Any help will be welcome, especially if some code example can be given, thanks.<br><br><br></pre><br>