File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11# MapTiler SDK Changelog
22
33## 2.5.1
4- ### Bug fixes
4+ ### Bug Fixes
5+ - Added extra integrity checks on style object when updating language (https://github.com/maptiler/maptiler-sdk-js/pull/142 )
56- The Geolocate control no longer throwing error when window is lost (issue on Firefox only) (https://github.com/maptiler/maptiler-sdk-js/pull/140 )
67
78## 2.5.0
Original file line number Diff line number Diff line change @@ -928,7 +928,7 @@ export class Map extends maplibregl.Map {
928928 }
929929
930930 private getStyleLanguage ( ) : LanguageInfo | null {
931- if ( ! this . style . stylesheet . metadata ) return null ;
931+ if ( ! this . style || ! this . style . stylesheet || ! this . style . stylesheet . metadata ) return null ;
932932 if ( typeof this . style . stylesheet . metadata !== "object" ) return null ;
933933
934934 if (
You can’t perform that action at this time.
0 commit comments