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?

Re: [OpenLayers-Users] Numeric Feature attribute values in style.label

2010-04-09 Thread Cliang
I posted about running into this issue on March 25 and Arnd pointed me to: http://openlayers.org/pipermail/users/2009-August/013462.html http://trac.openlayers.org/ticket/2252 (maybe that ticket should include keywords "leading, zeros" because I missed it as well) Since I'm only using replaceme

[OpenLayers-Users] Feature label with leading zero is being trimmed

2010-03-24 Thread Cliang
I have some features of zip codes with labels with leading zeros that are being cut off when the text is being drawn. I've tracked it down to the OpenLayers.Style.createLiteral function where it does not consider the value as IsNaN and parses it as a float. Is this working as designed? -- View t