forked from jsnbuchanan/crowd-funder-for-time-pwa
fix a jump on user profile map move & recenter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user