<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>have a look at this...</span></div><div><span><br></span></div><div><span><a href="http://docs.geoserver.org/latest/en/user/styling/sld-extensions/uom.html">http://docs.geoserver.org/latest/en/user/styling/sld-extensions/uom.html</a>&nbsp;<br></span></div><div><span><br></span></div>  <div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Alberto Romeu &lt;aromeu@prodevelop.es&gt;<br> <b><span style="font-weight: bold;">An:</span></b> openlayers-users@lists.osgeo.org <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 12:46 Mittwoch, 11.April 2012<br> <b><span style="font-weight:
 bold;">Betreff:</span></b> Re: [OpenLayers-Users] SVG external graphic preserves aspect ratio<br> </font> </div> <br>Hi,<br><br>another weird behaviour... In the example [1] the brown boats sometimes are correctly rendererd when the map is loaded. When zooming the boats are incorrectly scaled...<br><br>[1] <a href="http://gis.prodevelop.es/openlayers/svg.html" target="_blank">http://gis.prodevelop.es/openlayers/svg.html</a><br><br>-- <br>Alberto Romeu<br>---<br><br>Prodevelop SL, Valencia (España)<br>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<br><a href="http://www.prodevelop.es" target="_blank">http://www.prodevelop.es</a><br>---<br><br><br>El 11/04/12 12:16, Alberto Romeu escribió:<br>&gt; Hi,<br>&gt; <br>&gt; I'm trying to apply a SVG external graphic to a points layer. What I need is that the graphic size will be scale dependant and will not preserve the aspect ratio.<br>&gt; <br>&gt; What I've found is whatever graphicHeight and graphicWidth I set
 to the externalGraphic, the SVG is rendered preserving the aspect ratio... If I use png works OK.<br>&gt; <br>&gt; I've published an example [1] of what's happening. The green boats are PNG scaled correctly, the brown ones are SVG not scaled correctly, both have the same graphicHeight and graphicWidth.<br>&gt; <br>&gt; Am I missing something? Is there a way to use SVG in the way I need?<br>&gt; <br>&gt; Best regards.<br>&gt; <br>&gt; [1] <a href="http://gis.prodevelop.es/openlayers/svg.html" target="_blank">http://gis.prodevelop.es/openlayers/svg.html</a><br>&gt; <br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br><br><br> </div> </div>  </div></body></html>