File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 2.5.1
4
4
### Bug Fixes
5
+ - Better control of the status of ` monitoredStyleUrls ` in Map instance when error is caught (https://github.com/maptiler/maptiler-sdk-js/pull/141 )
5
6
- Added extra integrity checks on style object when updating language (https://github.com/maptiler/maptiler-sdk-js/pull/142 )
6
7
- The Geolocate control no longer throwing error when window is lost (issue on Firefox only) (https://github.com/maptiler/maptiler-sdk-js/pull/140 )
7
8
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ export class Map extends maplibregl.Map {
285
285
// If the URL is present in the list of monitored style URL,
286
286
// that means this AJAXError was about a style, and we want to fallback to
287
287
// the default style
288
- if ( this . monitoredStyleUrls . has ( clearnUrlStr ) ) {
288
+ if ( this . monitoredStyleUrls && this . monitoredStyleUrls . has ( clearnUrlStr ) ) {
289
289
this . monitoredStyleUrls . delete ( clearnUrlStr ) ;
290
290
applyFallbackStyle ( ) ;
291
291
}
You can’t perform that action at this time.
0 commit comments