Hi,

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...

[1] http://gis.prodevelop.es/openlayers/svg.html

--

Alberto Romeu
---

Prodevelop SL, Valencia (EspaƱa)
Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
http://www.prodevelop.es
---


El 11/04/12 12:16, Alberto Romeu escribió:
Hi,

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.

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.

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.

Am I missing something? Is there a way to use SVG in the way I need?

Best regards.

[1] http://gis.prodevelop.es/openlayers/svg.html

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to