chore: do not consume style query string now that we handle keys separatly

This commit is contained in:
Yohan Boniface 2024-02-07 18:47:00 +01:00
parent f09e399b3c
commit 7943c61b3e

View file

@ -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')