[OpenLayers-Trac] [OpenLayers] #3222: unhandled error when drawing
with canvas renderer
OpenLayers
trac-20090302 at openlayers.org
Wed Mar 30 17:42:05 EDT 2011
#3222: unhandled error when drawing with canvas renderer
-----------------------------+----------------------------------------------
Reporter: tschaub | Owner: crschmidt
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Renderer.Canvas | Version: 2.10
Keywords: | State:
-----------------------------+----------------------------------------------
Open donut.js and add this line:
{{{
OpenLayers.Layer.Vector.prototype.renderers = ["Canvas"];
}}}
Run the donut.html example. Click the "draw polygon" radio. See an
unhandled error.
{{{
An invalid or illegal string was specified" code: "12
}}}
The fix is fairly simple (avoid passing {{{NaN}}} to context methods), but
I don't think it is worth working into the current Canvas.js renderer.
The fix is even more straightforward with the patch for #3207 (the code
there has been refactored to avoid duplication).
--
Ticket URL: <http://trac.openlayers.org/ticket/3222>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list