tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.23k stars 1.68k forks source link

Error 'uncaught exception:object' #324

Open rafik73github opened 4 years ago

rafik73github commented 4 years ago

Using Openlayers, I create a map displayed in div. I create an image from this div using domtoimage. In openlayers, layers with different content (polygons, points, etc.) are superimposed. Everything is fine until I turn the map. When the map is rotated and I move it so that one layer is not visible in the div, the error appears as in the title of the post. Openlayers displays content in a 'ol-layer' class div. When the map is rotated, a duplicate 'ol-layer' is created. One maintains the original view settings and the other adopts parameters for rotation.

Browsers