Skip to content

Commit

Permalink
fix: remove the map bounds url update for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Apr 1, 2021
1 parent 7b9bbae commit 87fda83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,8 @@ function onMapMove() {
const z = map._zoom;
const bounds = map.getBounds();
const {lat, lng} = bounds.getCenter();
window.history.replaceState(null, '', `@${lat},${lng},${z}z`);
//TODO: this cannot replace the query string
//window.history.replaceState(null, '', `@${lat},${lng},${z}z`);
}

function getNextPoint(point) {
Expand Down

0 comments on commit 87fda83

Please sign in to comment.