Prevent more useless redraw when editing global settings
This commit is contained in:
parent
9d5ff35636
commit
986e70637a
1 changed files with 4 additions and 3 deletions
|
@ -1299,7 +1299,7 @@ L.U.Map.include({
|
||||||
|
|
||||||
builder = new L.U.FormBuilder(this, shapeOptions, {
|
builder = new L.U.FormBuilder(this, shapeOptions, {
|
||||||
callback: function (e) {
|
callback: function (e) {
|
||||||
this.eachDataLayer((datalayer) => {
|
this.eachVisibleDataLayer((datalayer) => {
|
||||||
datalayer.redraw()
|
datalayer.redraw()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1386,10 +1386,11 @@ L.U.Map.include({
|
||||||
if (
|
if (
|
||||||
e.helper.field === 'options.popupTemplate' ||
|
e.helper.field === 'options.popupTemplate' ||
|
||||||
e.helper.field === 'options.popupContentTemplate' ||
|
e.helper.field === 'options.popupContentTemplate' ||
|
||||||
e.helper.field === 'options.popupShape'
|
e.helper.field === 'options.popupShape' ||
|
||||||
|
e.helper.field === 'options.outlinkTarget'
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
this.eachDataLayer((datalayer) => {
|
this.eachVisibleDataLayer((datalayer) => {
|
||||||
datalayer.redraw()
|
datalayer.redraw()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue