[OpenLayers-Users] SVG external graphic preserves aspect ratio

Robert Buckley robertdbuckley at yahoo.com
Wed Apr 11 06:56:03 EDT 2012


have a look at this...

http://docs.geoserver.org/latest/en/user/styling/sld-extensions/uom.html 



________________________________
 Von: Alberto Romeu <aromeu at prodevelop.es>
An: openlayers-users at lists.osgeo.org 
Gesendet: 12:46 Mittwoch, 11.April 2012
Betreff: Re: [OpenLayers-Users] SVG external graphic preserves aspect ratio
 
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
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120411/8dc6f54f/attachment.html


More information about the Users mailing list