From 7943c61b3eec4475f46f4f23be5d6aade097e177 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 7 Feb 2024 18:47:00 +0100 Subject: [PATCH] chore: do not consume style query string now that we handle keys separatly --- umap/static/umap/js/umap.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index c7161d8e..ee7527dc 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -276,16 +276,6 @@ L.U.Map.include({ } this._default_extent = true this.options.name = L._('Untitled map') - let style = L.Util.queryString('style', null) - if (style) { - style = decodeURIComponent(style) - try { - style = JSON.parse(style) - L.Util.setOptions(this, style) - } catch (error) { - console.error(error) - } - } let data = L.Util.queryString('data', null) let dataUrl = L.Util.queryString('dataUrl', null) const dataFormat = L.Util.queryString('dataFormat', 'geojson')