chore: set a sync default value on createDataLayer

Rel: https://biomejs.dev/linter/rules/use-default-parameter-last/
This commit is contained in:
David Larlet 2024-06-25 17:23:52 -04:00
parent 445a793c3e
commit 5c88502a2e
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD

View file

@ -790,7 +790,7 @@ U.Map = L.Map.extend({
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}`
const datalayer = new U.DataLayer(this, options, sync)