[OpenLayers-Users] WFS Layer and SLD

Christopher Schmidt crschmidt at metacarta.com
Thu Jul 17 08:47:38 EDT 2008


On Thu, Jul 17, 2008 at 05:29:31AM -0700, 2StepForward wrote:
> Now I have add an additional attribute named "name" to the backend database
> featuretables which hold the full name of every feature. It is no problem to
> get them with the extractAttribute=true definition, but how is it possible
> to use this attribute to show it up into a style definition, like SLD.

This statement is unclear about what you want. Do you want to use the
name property to style things differently (for example, setting the
color to red if the name is "Istanbul", and blue if it's
"Constantinople"), or do you want to display the name in the map itself?
(The first is possible with existing code in trunk, the other is not.)

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list