ol 9.1.1-dev.1712818878663 → 9.1.1-dev.1712843292197
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 +2 -2
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/render/canvas/ZIndexContext.js +1 -1
- package/style/Icon.js +1 -1
- package/style/IconImage.js +1 -1
- package/util.js +1 -1
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ class ZIndexContext {
|
|
|
30
30
|
* @type {ZIndexContextProxy}
|
|
31
31
|
*/
|
|
32
32
|
this.context_ = /** @type {ZIndexContextProxy} */ (
|
|
33
|
-
new Proxy(
|
|
33
|
+
new Proxy(getSharedCanvasContext2D(), {
|
|
34
34
|
get: (target, property) => {
|
|
35
35
|
if (
|
|
36
36
|
typeof (/** @type {*} */ (getSharedCanvasContext2D())[property]) !==
|
package/style/Icon.js
CHANGED
|
@@ -186,7 +186,7 @@ class Icon extends ImageStyle {
|
|
|
186
186
|
if (options.src !== undefined) {
|
|
187
187
|
imageState = ImageState.IDLE;
|
|
188
188
|
} else if (image !== undefined) {
|
|
189
|
-
if (
|
|
189
|
+
if ('complete' in image) {
|
|
190
190
|
if (image.complete) {
|
|
191
191
|
imageState = image.src ? ImageState.LOADED : ImageState.IDLE;
|
|
192
192
|
} else {
|
package/style/IconImage.js
CHANGED
|
@@ -314,7 +314,7 @@ export function get(image, cacheKey, crossOrigin, imageState, color, pattern) {
|
|
|
314
314
|
if (!iconImage) {
|
|
315
315
|
iconImage = new IconImage(
|
|
316
316
|
image,
|
|
317
|
-
image
|
|
317
|
+
image && 'src' in image ? image.src || undefined : cacheKey,
|
|
318
318
|
crossOrigin,
|
|
319
319
|
imageState,
|
|
320
320
|
color,
|
package/util.js
CHANGED