Skip to content

Commit

Permalink
revert starting zoom to default behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Tackett <[email protected]>
  • Loading branch information
Adam Tackett committed Oct 25, 2024
1 parent 8d9f5f5 commit 1fbf350
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,9 @@ export function ServiceMap({
};

const setZoomLimits = (networkInstance) => {
let lastZoomLevel = 0.5;
let lastZoomLevel = 1.0;
const initialPosition = networkInstance.getViewPosition();

networkInstance.moveTo({
scale: lastZoomLevel,
position: initialPosition,
});

networkInstance.on('zoom', (params) => {
const zoomLevel = params.scale;

Expand Down

0 comments on commit 1fbf350

Please sign in to comment.