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 <[email protected]
> 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
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users