Skip to content

Commit

Permalink
fix(import): fermeture lors d'import de couche statique uniquement
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Oct 25, 2024
1 parent 3ce128b commit 49d405e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/packages/Controls/LayerImport/LayerImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,15 +935,16 @@ var LayerImport = class LayerImport extends Control {
*/
_onImportSubmit () {
logger.log("import d'une couche de type : " + this._currentImportType);
// on ferme le widget à l'import
this.setCollapsed(true);

// reinitialisation du contenu d'un import de type
// - static (KML ou GPX ou GeoJSON)
this.contentStatic = null;
// - service (WMS, ...)
this.contentService = null;

if (this._isCurrentImportTypeStatic) {
// on ferme le widget à l'import d'une couche statique
this.setCollapsed(true);
this._importStaticLayer();
} else {
this._importServiceLayers();
Expand Down

0 comments on commit 49d405e

Please sign in to comment.