update map on load

This commit is contained in:
Will Freeman
2024-12-24 14:47:18 -08:00
parent 3a52c22382
commit 94c1f65521
2 changed files with 8 additions and 9 deletions
+1 -5
View File
@@ -63,7 +63,7 @@ function initializeMap() {
attribution: '&copy; <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());
});
}
/**