[OpenLayers-Trac] [OpenLayers] #1542: Format.SLD: add support for TextSymbolizer
OpenLayers
trac at openlayers.org
Fri Jun 6 03:24:30 EDT 2008
#1542: Format.SLD: add support for TextSymbolizer
-------------------------+--------------------------------------------------
Reporter: bartvde | Owner: tschaub
Type: task | Status: new
Priority: minor | Milestone: 2.7 Release
Component: Format.SLD | Version: 2.6
Resolution: | Keywords:
State: Review |
-------------------------+--------------------------------------------------
Comment (by tschaub):
Hey Bart - This is a nice addition. I think we'll eventually want to
support more ogc:expressions. With that in mind, I decided a "label"
property in the text symbolizer would more closely fit the sld:Label
element. This parser has support for limited expression handling, so you
can do something like:
{{{
var symbolizer = {
"Text": {
"label": "There are ${population} people in ${state}.",
"fontFamily": "Arial" // etc
}
};
}}}
I also added a test to demonstrate it working. Let me know if this works
for you.
--
Ticket URL: <http://trac.openlayers.org/ticket/1542#comment:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list