[OpenLayers-Users] WFS + Text (Text_Symbolizer)

Ivan Grcic igrcic at gmail.com
Fri Nov 27 06:21:33 EST 2009


It's pretty simple, from the example:

label : "name: ${name}, age: ${age}",

where  ${name} -> feature.attributes.name and ${age} -> feature.attributes.age

So labels are attribute values, which you get from your geoserver that
gets it from database ;)

cheers

On Fri, Nov 27, 2009 at 9:27 AM, stash <steffen.schwarz85 at googlemail.com> wrote:
>
>
>
> Ivan Grcic-2 wrote:
>>
>> http://openlayers.org/dev/examples/vector-features-with-text.html
>>
>
> Hi,
> thanks for the example. After studying it, I copied the code, changed it for
> my app and it worked.
>
> But the disadvantage in the example is, that a predefined text (in my app i
> used: "test") is used by the stylemap.
>
> Because I don't want to have the same text at each point I have a small
> problem.
>
> The text for each point is stored in my database (which is connected to a
> layer in geoserver). Now I want to use the text from the database for each
> point instead of predefining some text.
>
> Is this possible? Can you tell me how to implement this.
>
> Thanks for the help.
>
> Regards
> stash
> --
> View this message in context: http://n2.nabble.com/WFS-Text-Text-Symbolizer-tp4071914p4074588.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Ivan Grcic



More information about the Users mailing list