fix a jump on user profile map move & recenter

This commit is contained in:
2025-01-21 19:51:58 -07:00
parent b9fedcd3fd
commit 0576fc4187
3 changed files with 10 additions and 7 deletions

View File

@@ -619,7 +619,7 @@ export default class DiscoverView extends Vue {
}
async onMapReady(map: L.Map) {
// doing this here instead of the l-map element avoids a recentering after the first drag
// doing this here instead of on the l-map element avoids a recentering after a drag then zoom at startup
map.setView([this.localCenterLat, this.localCenterLong], 2);
this.requestTiles(map);
}