mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
chore: set a sync default value on createDataLayer
Rel: https://biomejs.dev/linter/rules/use-default-parameter-last/
This commit is contained in:
parent
445a793c3e
commit
5c88502a2e
1 changed files with 1 additions and 1 deletions
|
@ -790,7 +790,7 @@ U.Map = L.Map.extend({
|
||||||
return L.Map.prototype.setMaxBounds.call(this, bounds)
|
return L.Map.prototype.setMaxBounds.call(this, bounds)
|
||||||
},
|
},
|
||||||
|
|
||||||
createDataLayer: function (options, sync) {
|
createDataLayer: function (options = {}, sync = true) {
|
||||||
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)
|
const datalayer = new U.DataLayer(this, options, sync)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue