Skip to content

Commit e304805

Browse files
committed
removed the zoomAdjust unnecesary value in minimap
1 parent ca3a8da commit e304805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Minimap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export default class Minimap implements IControl {
194194
this.#container.style.setProperty(key, value);
195195
}
196196
this.#options.container = this.#container;
197-
this.#options.zoom = parentMap.getZoom() + this.#options.zoomAdjust ?? -4;
197+
this.#options.zoom = parentMap.getZoom() + this.#options.zoomAdjust;
198198
this.map = new SDKMap(this.#options);
199199

200200
// 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 {
322322
const from = which === "parent" ? this.#parentMap : this.map;
323323
const to = which === "parent" ? this.map : this.#parentMap;
324324
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);
326326
const bearing = from.getBearing();
327327
const pitch = from.getPitch();
328328
to.jumpTo({

0 commit comments

Comments
 (0)