[OpenLayers-Trac] Re: [OpenLayers] #3258: cannot draw a label with value 0

OpenLayers trac-20090302 at openlayers.org
Mon Apr 18 08:38:37 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      
----------------------+-----------------------------------------------------
Description changed by bartvde:

Old description:

> This is because of the following check in Renderer::drawFeature:
>
> {{{
> if(style.display != "none" && style.label && rendered !== false) {
> }}}

New description:

 This is because of the following check in Style.js:

 {{{
 if (style.label && typeof style.label !== "string") {
     style.label = String(style.label);
 }}}

 which means the label value will not be casted to String before it gets to
 the Renderer

--

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3258#comment:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list