I need to export the current openlayers view into a canvas to finally save it as a image.
My Problem is, that i need a image of the current user view with some interactive elements.
I saw this working example: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html
There is a little addon that is not openlayers standard, but add a little export functionality: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html
but this does no work on current open layers (2.13) anymore and i dont get which version that is.
The Constant OpenLayers.Layer.Grid.ONECANVASPERLAYER does not exist (anymore ?).And the option "useCanvas" is deprecated as well.
This is the broken code (summarized):
if (layer instanceof OpenLayers.Layer.Grid){ this.drawLayer(layer.canvas); }A Grid layer has no attribut "canvas" as far as i can see it.
أكثر...
My Problem is, that i need a image of the current user view with some interactive elements.
I saw this working example: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html
There is a little addon that is not openlayers standard, but add a little export functionality: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html
but this does no work on current open layers (2.13) anymore and i dont get which version that is.
The Constant OpenLayers.Layer.Grid.ONECANVASPERLAYER does not exist (anymore ?).And the option "useCanvas" is deprecated as well.
This is the broken code (summarized):
if (layer instanceof OpenLayers.Layer.Grid){ this.drawLayer(layer.canvas); }A Grid layer has no attribut "canvas" as far as i can see it.
أكثر...