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 @@ -194,7 +194,7 @@ export default class Minimap implements IControl {
194
194
this . #container. style . setProperty ( key , value ) ;
195
195
}
196
196
this . #options. container = this . #container;
197
- this . #options. zoom = parentMap . getZoom ( ) + this . #options. zoomAdjust ?? - 4 ;
197
+ this . #options. zoom = parentMap . getZoom ( ) + this . #options. zoomAdjust ;
198
198
this . map = new SDKMap ( this . #options) ;
199
199
200
200
// NOTE: For some reason the DOM doesn't properly update it's size in time
@@ -322,7 +322,7 @@ export default class Minimap implements IControl {
322
322
const from = which === "parent" ? this . #parentMap : this . map ;
323
323
const to = which === "parent" ? this . map : this . #parentMap;
324
324
const center = from . getCenter ( ) ;
325
- const zoom = from . getZoom ( ) + ( this . #options. zoomAdjust ?? - 4 ) * ( which === "parent" ? 1 : - 1 ) ;
325
+ const zoom = from . getZoom ( ) + this . #options. zoomAdjust * ( which === "parent" ? 1 : - 1 ) ;
326
326
const bearing = from . getBearing ( ) ;
327
327
const pitch = from . getPitch ( ) ;
328
328
to . jumpTo ( {
You can’t perform that action at this time.
0 commit comments