We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 563c2ec commit 075f1cbCopy full SHA for 075f1cb
src/openlayers/overlay/vectortile/MapboxStyles.js
@@ -275,6 +275,10 @@ export class MapboxStyles extends Observable {
275
this._spriteImage = img;
276
this._initStyleFunction();
277
};
278
+ img.onerror = () => {
279
+ this._spriteImage = null;
280
+ this._initStyleFunction();
281
+ }
282
img.src = this._spriteImageUrl;
283
});
284
} else {
0 commit comments