Thank you, that was the problem and it is now behaving as it should

From: Ákos Maróy [mailto:a...@maroy.hu]
Sent: 30 January 2013 17:05
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SVG Marks

On 30/01/13 17:22, Chris Haste wrote:
Hello List,

I want to use an external SVG symbol as a mark and I'm using the CSS module for 
my styling, although I don't think that makes any difference to this question.

The SVG represents a pin and I want to position the pin so that the base of the 
pin is drawn at the position for that point, but the pins all seem to be drawn 
quite away to the left of the actual position.

What considerations do I need to take into account in order to be able to 
accurately position the SVG symbol relative to the reference coordinate?

what you have to achieve is that the 'middle point' of your SVG is the point 
you want to align with the depicted point on the map. if this is not the case 
for the natural shape of the SVG, you might want to add a non-visible element 
to the SVG itself (say, a circle that encoloses all of the SVG, with the 
circles center point being your wanted center point), and use the SVG that way.

from my experience, the SLD rendering engine will try to 'center' the SVG so 
that its center point is the point of reference being drawn. (and the CSS 
styling is based on the SLD styling)
*** This communication has been sent from World Fuel Services 
Corporation or its subsidiaries or its affiliates for the intended recipient 
only and may contain proprietary, confidential or privileged information. 
If you are not the intended recipient, any review, disclosure, copying, 
use, or distribution of the information included in this communication 
and any attachments is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to this 
communication and delete the communication, including any 
attachments, from your computer. Electronic communications sent to or 
from World Fuel Services Corporation or its subsidiaries or its affiliates 
may be monitored for quality assurance and compliance purposes.***

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to