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/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/renderer/canvas/ImageLayer.d.ts +5 -0
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +14 -0
- package/util.js +1 -1
package/package.json
CHANGED
|
@@ -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,
|
|
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