[OpenLayers-Trac] [OpenLayers] #3327: Error in OpenLayers.Handler.Path.activate using SVG2 rendered

OpenLayers trac-20090302 at openlayers.org
Fri May 27 06:04:58 EDT 2011


#3327: Error in OpenLayers.Handler.Path.activate using SVG2 rendered
--------------------------+-------------------------------------------------
 Reporter:  vrifino       |       Owner:  ahocevar    
     Type:  bug           |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Renderer.SVG  |     Version:  2.11 RC1    
 Keywords:  SVG2          |       State:              
--------------------------+-------------------------------------------------
 I'm testing SVG2 renderer in my application. I enable it with this code

 {{{
 OpenLayers.Layer.Vector.prototype.renderers = ["SVG2", "VML", "Canvas"];
 }}}

 Then I create an Openlayers.Control.Measure with a custom handler

 {{{
 OpenLayers.Handler.Path, {
   persist: true,
   handlerOptions: {
     layerOptions: {styleMap: styleMap}
   }
 }
 }}}

 When I activate the control, I get this error in the console

 Error: Problem parsing points="NaN,NaN"

 Same problem with an OpenLayers.Handler.Polygon.
 The problem doesn't show if I use the default SVG renderer.

 Vito

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3327>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list