mirror of
https://github.com/umap-project/umap.git
synced 2025-05-03 13:11:49 +02:00
Merge 169be73488
into 6945a5e867
This commit is contained in:
commit
b8376fde75
1 changed files with 2 additions and 2 deletions
|
@ -645,7 +645,7 @@ export class DataLayer {
|
|||
}
|
||||
|
||||
edit() {
|
||||
if (!this._umap.editEnabled || !this.isLoaded()) {
|
||||
if (!this._umap.editEnabled) {
|
||||
return
|
||||
}
|
||||
const container = DomUtil.create('div', 'umap-layer-properties-container')
|
||||
|
@ -1105,7 +1105,7 @@ export class DataLayer {
|
|||
|
||||
async save() {
|
||||
if (this.isDeleted) return await this.saveDelete()
|
||||
if (!this.isLoaded()) return
|
||||
if (!this.isRemoteLayer() && !this.isLoaded()) return
|
||||
const geojson = this.umapGeoJSON()
|
||||
const formData = new FormData()
|
||||
formData.append('name', this.options.name)
|
||||
|
|
Loading…
Reference in a new issue