[Geoserver-users] Label Placements in CSS styling module

Am I overlooking something or is there no way to displace my road
labels in a CSS generated style?

If it is missing where should I look for the code so I can see if I can add it?

Cheers

Ian

--
Ian Turton

I pulled the code for the actual translation process into the geoscript Scala variant a month or so ago, so it’s hosted on github with the rest of that project. However, I don’t think you’ll need to dig into it just yet since displacement is there but undocumented.

For a line placement with offset:

  • {

label: [foo];

label-offset: 10px;

}

For a point placement with anchor point, offset and rotation:

  • {

label: [foo];

label-offset: 10px 10px;

label-anchor: 25% 25%;

label-rotation: 45deg;

}

If you’re still itching to provide a patch, this is missing from the documentation. All of these properties should be included in the main properties list at http://docs.geoserver.org/stable/en/user/community/css/properties.html; a patch for the Sphinx sources would be greatly appreciated.


David Winslow
OpenGeo - http://opengeo.org/

On Thu, Sep 16, 2010 at 11:56 AM, Ian Turton <ijturton@anonymised.com> wrote:

Am I overlooking something or is there no way to displace my road
labels in a CSS generated style?

If it is missing where should I look for the code so I can see if I can add it?

Cheers

Ian


Ian Turton


Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Thu, Sep 16, 2010 at 12:12 PM, David Winslow <dwinslow@anonymised.com> wrote:

I pulled the code for the actual translation process into the geoscript
Scala variant a month or so ago, so it's hosted on github with the rest of
that project. However, I don't think you'll need to dig into it just yet
since displacement is there but undocumented.

Thanks - I'll look at the docs when I get a free moment.

Ian