Allow to open the map in edit mode
This commit is contained in:
parent
63a7ef00ea
commit
3786a767f2
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ L.U.Map.include({
|
||||||
this.onceDataLoaded(function () {
|
this.onceDataLoaded(function () {
|
||||||
const slug = L.Util.queryString('feature')
|
const slug = L.Util.queryString('feature')
|
||||||
if (slug && this.features_index[slug]) this.features_index[slug].view()
|
if (slug && this.features_index[slug]) this.features_index[slug].view()
|
||||||
|
if (L.Util.queryString('edit')) this.enableEdit()
|
||||||
})
|
})
|
||||||
|
|
||||||
window.onbeforeunload = (e) => {
|
window.onbeforeunload = (e) => {
|
||||||
|
|
Loading…
Reference in a new issue