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.
2 parents 3e6edf8 + 075f1cb commit 00aa0f3Copy full SHA for 00aa0f3
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