ol 10.5.1-dev.1748531944555 → 10.5.1-dev.1748585599784

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "10.5.1-dev.1748531944555",
3
+ "version": "10.5.1-dev.1748585599784",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -254,7 +254,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
254
254
  * @private
255
255
  */
256
256
  resetDrawContext_() {
257
- if (this.opacity_ !== 1) {
257
+ if (this.opacity_ !== 1 && this.targetContext_) {
258
258
  const alpha = this.targetContext_.globalAlpha;
259
259
  this.targetContext_.globalAlpha = this.opacity_;
260
260
  this.targetContext_.drawImage(this.context.canvas, 0, 0);
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '10.5.1-dev.1748531944555';
36
+ export const VERSION = '10.5.1-dev.1748585599784';