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

Stephen Woodbridge woodbri at swoodbridge.com
Wed Feb 17 11:53:55 EST 2010


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



More information about the Users mailing list