I believe the shield will be rotated along with the text when you use <VendorOption name="followLine">true</VendorOption>
If so, it seems that you can use select an icon based on the direction attribute. SVG icons would be good - when you have GeoServer manipulating your icons, storing them in a vector format helps to reduce visual artifacts. If SVG's not an option for whatever reason, using high-resolution icons can also help avoid problems. I've attached CSS (using the community module) and SVG examples, hope it helps. -- David Winslow OpenGeo - http://opengoe.org/ On Fri, Jan 18, 2013 at 7:06 AM, Chris Haste <[email protected]> wrote: > Hello List,**** > > ** ** > > I would like to be able to render road numbers inside a shield where the > shield itself is used to indicate direction. I’m guessing that I would > require 3 different shield symbols (SVG?), or possibly just two if one can > be rotated. One symbol would be a rectangle with an arrow at each end > (indicating bidirectional) the other(s) a rectangle with just the arrow at > one end (indicating direction)**** > > ** ** > > So, I have a couple of questions:**** > > **· **Is this the correct approach for achieving this objective?** > ** > > **· **How do you control the orientation of a label shield in > order to have the arrow pointing in the correct direction?**** > > ** ** > > The data has an attribute of Forward, Backward or Both relative to the > order in which the line is defined.**** > > ** ** > > Any helps or pointers greatly appreciated.**** > > ** ** > > Thanks**** > > ** ** > > Chris **** > > ** ** > > *** 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.*** > > > > ------------------------------------------------------------------------------ > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > much more. Get web development skills now with LearnDevNow - > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122812 > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > >
* {
label: [STREET_NAME];
label-offset: 0; /* A single element here selects LinePlacement, needed for -gt-follow-line to work */
font-fill: black;
shield-mime: "image/svg+xml";
-gt-label-follow-line: true;
}
street.sld
Description: Binary data
------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
