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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.1.1-dev.1712818878663",
3
+ "version": "9.1.1-dev.1712843292197",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -30,7 +30,7 @@ class ZIndexContext {
30
30
  * @type {ZIndexContextProxy}
31
31
  */
32
32
  this.context_ = /** @type {ZIndexContextProxy} */ (
33
- new Proxy(CanvasRenderingContext2D.prototype, {
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 (image instanceof HTMLImageElement) {
189
+ if ('complete' in image) {
190
190
  if (image.complete) {
191
191
  imageState = image.src ? ImageState.LOADED : ImageState.IDLE;
192
192
  } else {
@@ -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 instanceof HTMLImageElement ? image.src || undefined : cacheKey,
317
+ image && 'src' in image ? image.src || undefined : cacheKey,
318
318
  crossOrigin,
319
319
  imageState,
320
320
  color,
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 = '9.1.1-dev.1712818878663';
36
+ export const VERSION = '9.1.1-dev.1712843292197';