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

OpenLayers trac-20090302 at openlayers.org
Tue May 31 02:18:28 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:  Review      
-------------------------+--------------------------------------------------

Comment(by mosesonline):

 Sometimes the only thing is a nap to see things clear:) We override the
 drawText method of the SVG/-2 renderer and this gets the current node "g"
 from the NG renderer, like the original implementation. The error was that
 we forgot to do something like :[[BR]]
  "tspan = labelNode.children[iterator - 1] ||
 context.nodeFactory(.."[[BR]]
 So we only created new nodes which where never appended, probably because
 the id was the same as the id already existed in the svg/xhmtl-
 document.[[BR]]
 I don't know why this didn't occur in the old renderer but maybe this post
 will help someone in the future who has a similar bug with nodes only
 partially updated.[[BR]]

 Has someone other in IE9 and Opera 11.11 an Exception like: "Uncaught
 exception: TypeError: 'text.setAttributeNS' is not a function"?

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


More information about the Trac mailing list