Simplify Panel popup inheritance
Panel is not a real popup, so the less we inherit the better
This commit is contained in:
parent
d56162390d
commit
50b8b66261
1 changed files with 3 additions and 6 deletions
|
@ -63,8 +63,8 @@ L.U.Popup.Panel = L.U.Popup.extend({
|
||||||
return button
|
return button
|
||||||
},
|
},
|
||||||
|
|
||||||
update: function () {
|
onAdd: function (map) {
|
||||||
this.feature.map.ui.openPanel({
|
map.ui.openPanel({
|
||||||
data: { html: this._content },
|
data: { html: this._content },
|
||||||
actions: [this.allButton()],
|
actions: [this.allButton()],
|
||||||
})
|
})
|
||||||
|
@ -72,12 +72,9 @@ L.U.Popup.Panel = L.U.Popup.extend({
|
||||||
|
|
||||||
onRemove: function (map) {
|
onRemove: function (map) {
|
||||||
map.ui.closePanel()
|
map.ui.closePanel()
|
||||||
L.U.Popup.prototype.onRemove.call(this, map)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_initLayout: function () {
|
update: function () {},
|
||||||
this._container = L.DomUtil.create('span')
|
|
||||||
},
|
|
||||||
_updateLayout: function () {},
|
_updateLayout: function () {},
|
||||||
_updatePosition: function () {},
|
_updatePosition: function () {},
|
||||||
_adjustPan: function () {},
|
_adjustPan: function () {},
|
||||||
|
|
Loading…
Reference in a new issue