See http://trac.osgeo.org/openlayers/ticket/1439 for the ticket where this change was discussed. And note that it is 5 years old, so I wonder what version you were using when you got a result that worked for you. The ticket also suggests using a regular expression instead of an isNaN check. Maybe you want to create a pull request?
Andreas. On Sun, Jun 9, 2013 at 11:34 PM, Martin Mares <[email protected]> wrote: > Hi! > >> this approach should also fail with older versions of OpenLayers. At least >> the code section you pointed out did not change between 2.12 and 2.13. If >> you are talking about a previous version, you must be talking about >> something very old (2.9 or 2.10 maybe?). > > It was about a year ago, so it's probably something very old :) > >> Instead of adding the overhead to render tracks with an empty label, why >> don't you either use a rule based style that only renders labels for points >> or a context function that returns undefined for tracks? > > Thanks, but it solves only a part of the problem, not the automatic > conversion of "00" to "0". > > I still feel that features with empty names, or named as "000" should > work out of the box, so I am probably doing something terribly wrong > if they don't. > > Have a nice fortnight > -- > Martin `MJ' Mares <[email protected]> http://mj.ucw.cz/ > Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth > Even nostalgia isn't what it used to be. -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
