Move map with media selection in feed panel

This commit is contained in:
2026-05-06 21:39:40 +02:00
parent 07a5c3baf9
commit 7aaaff7dda
3 changed files with 33 additions and 15 deletions

View File

@@ -169,9 +169,6 @@ export default {
this.api.get('geojson', {id_project: this.currProject.id})
]);
//Get default basemap
this.baseMap = this.baseMaps.find((asBM) => asBM.default_map)?.codename ?? null;
//Build Map
if(this.map) this.map.remove();
this.map = new Map({
@@ -195,6 +192,9 @@ export default {
attributionControl: false
});
//Get default basemap
this.baseMap = this.baseMaps.find((asBM) => asBM.default_map)?.codename ?? null;
//Force wait for load event
await new Promise((resolve) => {
if(this.map.loaded()) resolve();