[OpenLayers-Dev] [Mapbuilder-users] [georss] Styling GeoRss points

Andreas Hocevar andreas.hocevar at gmail.com
Tue Jun 5 14:02:41 EDT 2007


Hi,

On 6/5/07, Charlie Savage <cfis at savagexi.com> wrote:

> Okay, so you went with <externalGraphic> borrowing from SLD I assume.
> In that case, why not just use <img> from XTHML or <image> from SVG
> (probably SVG is a better choice being a vector drawing language)?

Thanks for the hint, Charlie. I already use <svg:image> for SVG. On IE I now
use <v:rect><v:fill src="..."/></v:rect>, which also gives me
aspect-ratio aware rendering in VML. Previously, I used <v:image>,
which does not respect the aspect-ratio of the image.

I now committed a version into the sandbox which works as it should
for SVG and VML - the height is the size and the width is adjusted
according to the aspect ratio of the image. This is as the SLD
specification wants it, and there is no need for graphicWidth and
graphicHeidht any more.

Regards,
Andreas.



More information about the Dev mailing list