mirror of
https://github.com/umap-project/umap.git
synced 2025-05-04 13:41:49 +02:00
chore: biome
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
This commit is contained in:
parent
31c15e7387
commit
617c0cee56
4 changed files with 5 additions and 5 deletions
|
@ -563,7 +563,7 @@ export const SCHEMA = {
|
||||||
type: Object,
|
type: Object,
|
||||||
impacts: ['data'],
|
impacts: ['data'],
|
||||||
},
|
},
|
||||||
|
|
||||||
_reference_version: {
|
_reference_version: {
|
||||||
type: Number,
|
type: Number,
|
||||||
impacts: ['data'],
|
impacts: ['data'],
|
||||||
|
|
|
@ -32,7 +32,7 @@ class BaseUpdater {
|
||||||
}
|
}
|
||||||
|
|
||||||
getDataLayerFromID(layerId, future_uuid) {
|
getDataLayerFromID(layerId, future_uuid) {
|
||||||
if (layerId) return this.map.getDataLayerByUmapId(layerId, future_uuid)
|
if (layerId) return this.map.getDataLayerByUmapId(layerId, future_uuid)
|
||||||
return this.map.defaultEditDataLayer()
|
return this.map.defaultEditDataLayer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ export default class URLs {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the layer if pk is passed, create otherwise.
|
// Update the layer if pk is passed, create otherwise.
|
||||||
datalayer_save({ map_id, pk, created}, ...options) {
|
datalayer_save({ map_id, pk, created }, ...options) {
|
||||||
if (created) return this.get('datalayer_update', { map_id, pk }, ...options)
|
if (created) return this.get('datalayer_update', { map_id, pk }, ...options)
|
||||||
return this.get('datalayer_create', { map_id, pk }, ...options)
|
return this.get('datalayer_create', { map_id, pk }, ...options)
|
||||||
}
|
}
|
||||||
|
|
|
@ -818,7 +818,7 @@ U.Map = L.Map.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
createDataLayer: function (options = {}, sync = true, future_uuid = undefined) {
|
createDataLayer: function (options = {}, sync = true, future_uuid = undefined) {
|
||||||
console.log("Create Datalayer", options)
|
console.log('Create Datalayer', options)
|
||||||
options.name = options.name || `${L._('Layer')} ${this.datalayers_index.length + 1}`
|
options.name = options.name || `${L._('Layer')} ${this.datalayers_index.length + 1}`
|
||||||
const datalayer = new U.DataLayer(this, options, sync, future_uuid)
|
const datalayer = new U.DataLayer(this, options, sync, future_uuid)
|
||||||
|
|
||||||
|
@ -829,7 +829,7 @@ U.Map = L.Map.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
newDataLayer: function () {
|
newDataLayer: function () {
|
||||||
const datalayer = this.createDataLayer({}, sync=true)
|
const datalayer = this.createDataLayer({}, (sync = true))
|
||||||
datalayer.edit()
|
datalayer.edit()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue