[OpenLayers-Trac] Re: [OpenLayers] #3258: cannot draw a label with
value 0
OpenLayers
trac-20090302 at openlayers.org
Wed Apr 13 20:08:09 EDT 2011
#3258: cannot draw a label with value 0
----------------------+-----------------------------------------------------
Reporter: bartvde | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Renderer | Version: 2.10
Keywords: | State: Review
----------------------+-----------------------------------------------------
Comment(by tschaub):
The patch looks sensible enough, but I'm curious how 0 is getting to the
renderer. After r11886, labels should be string assuming they go through
{{{style.createSymbolizer}}} (and your test asserts that {{{0}}} becomes
{{{"0"}}} which is truthy).
Are you calling {{{drawFeature}}} directly with a symbolizer?
Also, is this a regression?
(I know this isn't a big change, I'm just curious about these things.)
--
Ticket URL: <http://trac.openlayers.org/ticket/3258#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list