File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ export class WebMap extends ol.Observable {
405405 maxResolution = Math . max ( maxResolution1 , maxResolution2 ) ;
406406 }
407407
408- if ( options . baseLayer . visibleScales ) {
408+ if ( options . baseLayer . visibleScales && options . baseLayer . visibleScales . length > 0 ) {
409409 maxZoom = options . baseLayer . visibleScales . length ;
410410 }
411411
@@ -688,7 +688,7 @@ export class WebMap extends ol.Observable {
688688 prjCoordSys :{ epsgCode : isBaseLayer ? layerInfo . projection . split ( ':' ) [ 1 ] : this . baseProjection . split ( ':' ) [ 1 ] } ,
689689 tileProxy : this . tileProxy
690690 } ;
691- if ( layerInfo . visibleScales ) {
691+ if ( layerInfo . visibleScales && layerInfo . visibleScales . length > 0 ) {
692692 let result = this . getReslutionsFromScales ( layerInfo . visibleScales , 96 , layerInfo . coordUnit ) ;
693693 let tileGrid = new ol . tilegrid . TileGrid ( {
694694 extent : layerInfo . extent ,
You can’t perform that action at this time.
0 commit comments