[OpenLayers-Users] Display cector feature labels with spaces?

Jan Henrik Øverland janhenrik.overland at gmail.com
Wed Feb 17 14:07:42 EST 2010


You can't use " " as '${Name}' works perfectly, but '${"Name"}' does not.

So obviously '${"Name of fa"}' did not work. By the way, '${Name }' (with a
space) did not either.

Jan

On Wed, Feb 17, 2010 at 5:53 PM, Stephen Woodbridge <woodbri at swoodbridge.com
> wrote:

> Jan Henrik Řverland wrote:
>
>> Hi, displaying feature labels works fine like this:
>>
>> 'label': '${Name}'
>>
>> However, the name column in my stupid facility shapefile is called "Name
>> of fa" and then the labels are displayed as ${Name of fa} in the map.
>> I know I can just change the shapefile, but is it possible to display
>> labels where the name column has spaces?
>>
>
> Just off the top of my head, did you try:  'label: '${"Name of fa"}'
>
> -Steve
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100217/36314dc8/attachment.html


More information about the Users mailing list