Re: [OpenLayers-Users] Vector labels at different zoom levels

2010-04-17 Thread Cliang
Arnd, Thanks for that code. I wasn't aware you can apply context to a style. I was able to hide labels if they do not fit within the geometry for the current zoom. Is there a better way to get the average pixel width of a label character for a fixed font size instead of hardcoding it like this?

[OpenLayers-Users] Vector labels at different zoom levels

2010-04-12 Thread Jeff Dege
I'm adding some attributes to the GML data I'm using to draw a vector layer, and have set the label member of the style object to display those attributes. It works fine, except that it looks lousy when I zoom out. The labels are still drawn the same, even though the features may be nearly

Re: [OpenLayers-Users] Vector labels at different zoom levels

2010-04-12 Thread Arnd Wippermann
von Jeff Dege Gesendet: Montag, 12. April 2010 22:19 An: users@openlayers.org Betreff: [OpenLayers-Users] Vector labels at different zoom levels I'm adding some attributes to the GML data I'm using to draw a vector layer, and have set the label member of the style object to display those