Move map with media selection in feed panel
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user