[OpenLayers-Dev] #736 (external graphic as style for vector
points)
Arthur Noel
art at ischium.net
Fri Jun 1 06:38:45 EDT 2007
Hello,
> http://dev.openlayers.org/sandbox/camptocamp/externalGraphics/
> examples/vector-features.html
>>
>> There is an amazing behavior : the icon is upside-down.
>
> I think this is because of the SVG coordinate system definition. I was
> not aware of that, will fix it.
I have been playing with this myself and came up against the same
problem. My solution was to flip it back:
node.setAttributeNS(null, "y", -1 * y);
node.setAttributeNS(null, "transform", "scale(1, -1)");
I will try to add a patch to the ticket with some other changes later
today.
Regards,
Arthur
More information about the Dev
mailing list