ol 10.7.1-dev.1768855530776 → 10.7.1-dev.1768898466014

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.7.1-dev.1768855530776",
3
+ "version": "10.7.1-dev.1768898466014",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -14,6 +14,11 @@ declare class CanvasImageLayerRenderer extends CanvasLayerRenderer<any> {
14
14
  * @type {?import("../../Image.js").default}
15
15
  */
16
16
  protected image: import("../../Image.js").default | null;
17
+ /**
18
+ * @private
19
+ * @type {number}
20
+ */
21
+ private renderedSourceRevision_;
17
22
  /**
18
23
  * @return {import('../../DataTile.js').ImageLike} Image.
19
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ImageLayer.d.ts","sourceRoot":"","sources":["ImageLayer.js"],"names":[],"mappings":";AAqBA;;;;GAIG;AACH;IACE;;OAEG;IACH,6DAQC;IALC;;;OAGG;IACH,iBAFW,OAAO,gBAAgB,EAAE,OAAO,OAAA,CAE1B;IAGnB;;OAEG;IACH,YAFY,OAAO,mBAAmB,EAAE,SAAS,CAIhD;IAsDD;;;;OAIG;IACH,wBAJW,OAAO,gBAAgB,EAAE,KAAK,GAC7B,iBAAiB,CA0C5B;IAED;;;;;;OAMG;IACH,iCALW,OAAO,cAAc,EAAE,UAAU,UACjC,WAAW,GACV,WAAW,CAuFtB;CACF;gCA1N+B,YAAY"}
1
+ {"version":3,"file":"ImageLayer.d.ts","sourceRoot":"","sources":["ImageLayer.js"],"names":[],"mappings":";AAqBA;;;;GAIG;AACH;IACE;;OAEG;IACH,6DAcC;IAXC;;;OAGG;IACH,iBAFW,OAAO,gBAAgB,EAAE,OAAO,OAAA,CAE1B;IAEjB;;;OAGG;IACH,gCAAgC;IAGlC;;OAEG;IACH,YAFY,OAAO,mBAAmB,EAAE,SAAS,CAIhD;IA8DD;;;;OAIG;IACH,wBAJW,OAAO,gBAAgB,EAAE,KAAK,GAC7B,iBAAiB,CA0C5B;IAED;;;;;;OAMG;IACH,iCALW,OAAO,cAAc,EAAE,UAAU,UACjC,WAAW,GACV,WAAW,CAuFtB;CACF;gCAxO+B,YAAY"}
@@ -36,6 +36,12 @@ class CanvasImageLayerRenderer extends CanvasLayerRenderer {
36
36
  * @type {?import("../../Image.js").default}
37
37
  */
38
38
  this.image = null;
39
+
40
+ /**
41
+ * @private
42
+ * @type {number}
43
+ */
44
+ this.renderedSourceRevision_ = 0;
39
45
  }
40
46
 
41
47
  /**
@@ -75,6 +81,14 @@ class CanvasImageLayerRenderer extends CanvasLayerRenderer {
75
81
  !isEmpty(renderedExtent)
76
82
  ) {
77
83
  if (imageSource) {
84
+ if (
85
+ !this.getLayer().rendered &&
86
+ this.renderedSourceRevision_ !== imageSource.getRevision()
87
+ ) {
88
+ this.image = null;
89
+ }
90
+ this.renderedSourceRevision_ = imageSource.getRevision();
91
+
78
92
  const projection = viewState.projection;
79
93
  const image = imageSource.getImage(
80
94
  renderedExtent,
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.7.1-dev.1768855530776';
36
+ export const VERSION = '10.7.1-dev.1768898466014';