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.
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