From 5c88502a2ea2d5fae17276ef3e014001aac9bbce Mon Sep 17 00:00:00 2001 From: David Larlet Date: Tue, 25 Jun 2024 17:23:52 -0400 Subject: [PATCH] chore: set a sync default value on createDataLayer Rel: https://biomejs.dev/linter/rules/use-default-parameter-last/ --- umap/static/umap/js/umap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index d260fc70..b3ca3b5c 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -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)