<div dir="ltr"><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">Hi!!</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">I'm making a map, and I need to create polygons on it
that donīt change its size when the zoom of the map change. I donīt use a mark
because I need to rotate it.</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">Has someone any idea about how I can do
it?</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">I have another problem: I draw different layers with
different units and when it is draw the size of the figure is the same in spite
of having different measures unit (Km and inches). The code
is:</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p class="MsoNormal" style="margin-left: 35.4pt; text-indent: 35.4pt;"><font size="2" color="#010001" face="Courier New"><span style="font-size: 10pt; color: rgb(1, 0, 1); font-family: 'Courier New';">vectorLayer</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> = <font color="blue"><span style="color: blue;">new</span></font> <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Layer</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Vector</span></font>(<font color="#a31515"><span style="color: rgb(163, 21, 21);">"Simple Geometry"</span></font>, {<font color="#010001"><span style="color: rgb(1, 0, 1);">style</span></font>: <font color="#010001"><span style="color: rgb(1, 0, 1);">layer_style</span></font>});</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">vectorLayer</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">units</span></font>=<font color="#a31515"><span style="color: rgb(163, 21, 21);">"mi"</span></font>;</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">map</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">addLayer</span></font>(<font color="#010001"><span style="color: rgb(1, 0, 1);">vectorLayer</span></font>);</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';">
</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">vectorLayer2</span></font> = <font color="blue"><span style="color: blue;">new</span></font> <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Layer</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Vector</span></font>(<font color="#a31515"><span style="color: rgb(163, 21, 21);">"Simple Geometry 2"</span></font>, {<font color="#010001"><span style="color: rgb(1, 0, 1);">style</span></font>: <font color="#010001"><span style="color: rgb(1, 0, 1);">layer_style</span></font>});</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">vectorLayer2</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">units</span></font>=<font color="#a31515"><span style="color: rgb(163, 21, 21);">"km"</span></font>;</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">map</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">addLayer</span></font>(<font color="#010001"><span style="color: rgb(1, 0, 1);">vectorLayer2</span></font>);</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></font></p>
<p class="MsoNormal" style="margin-left: 70.8pt;"><font size="2" color="blue" face="Courier New"><span style="font-size: 10pt; color: blue; font-family: 'Courier New';">var</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">poligonoTriangulo</span></font> = <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Geometry</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Polygon</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">createRegularPolygon</span></font>(<font color="blue"><span style="color: blue;">new</span></font> <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Geometry</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Point</span></font>(-20,40),5,3,0);</span></font></p>
<p class="MsoNormal" style="margin-left: 35.4pt; text-indent: 35.4pt;"><font size="2" color="blue" face="Courier New"><span style="font-size: 10pt; color: blue; font-family: 'Courier New';">var</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">triangulo</span></font> = <font color="blue"><span style="color: blue;">new</span></font> <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Feature</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Vector</span></font>(<font color="#010001"><span style="color: rgb(1, 0, 1);">poligonoTriangulo</span></font>,<font color="blue"><span style="color: blue;">null</span></font>,<font color="#010001"><span style="color: rgb(1, 0, 1);">style_triangulo</span></font>);</span></font></p>
<p class="MsoNormal" style="margin-left: 35.4pt; text-indent: 35.4pt;"><font size="2" color="#010001" face="Courier New"><span style="font-size: 10pt; color: rgb(1, 0, 1); font-family: 'Courier New';">vectorLayer</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';">.<font color="#010001"><span style="color: rgb(1, 0, 1);">addFeatures</span></font>(<font color="#010001"><span style="color: rgb(1, 0, 1);">triangulo</span></font>);<font color="green"><span style="color: green;"></span></font></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';">
</span></font></p>
<p class="MsoNormal" style="margin-left: 70.8pt;"><font size="2" color="blue" face="Courier New"><span style="font-size: 10pt; color: blue; font-family: 'Courier New';">var</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">poligonoTriangulo2</span></font> = <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Geometry</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Polygon</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">createRegularPolygon</span></font>(<font color="blue"><span style="color: blue;">new</span></font> <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Geometry</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Point</span></font>(-0,40),5,3,0);</span></font></p>
<p class="MsoNormal" style="margin-left: 35.4pt; text-indent: 35.4pt;"><font size="2" color="blue" face="Courier New"><span style="font-size: 10pt; color: blue; font-family: 'Courier New';">var</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New';"> <font color="#010001"><span style="color: rgb(1, 0, 1);">triangulo2</span></font> = <font color="blue"><span style="color: blue;">new</span></font> <font color="#010001"><span style="color: rgb(1, 0, 1);">OpenLayers</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Feature</span></font>.<font color="#010001"><span style="color: rgb(1, 0, 1);">Vector</span></font>(<font color="#010001"><span style="color: rgb(1, 0, 1);">poligonoTriangulo2</span></font>,<font color="blue"><span style="color: blue;">null</span></font>,<font color="#010001"><span style="color: rgb(1, 0, 1);">style_triangulo</span></font>);</span></font></p>
<p class="MsoNormal" style="margin-left: 35.4pt; text-indent: 35.4pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">vectorLayer2.addFeatures(triangulo2);</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font size="2" color="#010001" face="Courier New"><span style="font-size: 10pt; color: rgb(1, 0, 1); font-family: 'Courier New';">The units
are km and mi, but the size of the figures on the map is the
same.</span></font></p>
<p class="MsoNormal" style="margin-left: 35.4pt; text-indent: 35.4pt;"><font size="2" color="#a31515" face="Courier New"><span style="font-size: 10pt; color: rgb(163, 21, 21); font-family: 'Courier New';"> </span></font></p>
<p class="MsoNormal" style="margin-left: 35.4pt; text-indent: 35.4pt;"><font size="2" color="#a31515" face="Courier New"><span style="font-size: 10pt; color: rgb(163, 21, 21); font-family: 'Courier New';"> </span></font></p>
<p class="MsoNormal"><font size="2" color="#010001" face="Courier New"><span style="font-size: 10pt; color: rgb(1, 0, 1); font-family: 'Courier New';">Thanks!!!</span></font></p></div>