[OpenLayers-Trac] Re: [OpenLayers] #3257: NG renderer does not recalculate feature styles on zoom change

OpenLayers trac-20090302 at openlayers.org
Sat May 28 12:00:47 EDT 2011


#3257: NG renderer does not recalculate feature styles on zoom change
-------------------------+--------------------------------------------------
 Reporter:  ahocevar     |       Owner:  ahocevar    
     Type:  bug          |      Status:  new         
 Priority:  minor        |   Milestone:  2.12 Release
Component:  Renderer.NG  |     Version:  SVN         
 Keywords:               |       State:              
-------------------------+--------------------------------------------------

Comment(by ahocevar):

 Attached is a patch that fixes the issue. This can be tested with the
 styles-context.html example, which was updated so the renderer can be set
 in the url (e.g. {{{?renderer=SVG2}}}), and with resolution dependent size
 of the features in the southern hemisphere.

 The solution is to store a _createSymbolizer closure method as part of the
 node's style if there are propertyStyles with functions in the context.
 This approach does not add any overhead if no propertyStyles with
 functions are used in the context.

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


More information about the Trac mailing list