mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-07-06 04:18:00 +02:00
update map on load
This commit is contained in:
@@ -63,7 +63,7 @@ function initializeMap() {
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
||||
}).addTo(map);
|
||||
|
||||
populateMap();
|
||||
emit('update:bounds', map.getBounds()); // XXX: this event populates the map
|
||||
}
|
||||
|
||||
function renderCurrentLocation() {
|
||||
@@ -194,10 +194,6 @@ function registerEvents() {
|
||||
emit('update:zoom', map.getZoom());
|
||||
emit('update:bounds', map.getBounds());
|
||||
});
|
||||
|
||||
map.on('load', () => {
|
||||
emit('update:bounds', map.getBounds());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user