Browse Source

CategoryOverpass: bugfix, also set listsDom for categories with single list

master
parent
commit
2197dd6c79
  1. 4
      src/CategoryOverpass.js

4
src/CategoryOverpass.js

@ -249,10 +249,9 @@ CategoryOverpass.prototype.open = function () {
if (!this.lists) {
this.lists = []
this.listsDom = []
if (this.data.lists) {
this.listsDom = []
let wrapper = document.createElement('div')
wrapper.className = 'categoryWrapper'
this.domContent.appendChild(wrapper)
@ -311,6 +310,7 @@ CategoryOverpass.prototype.open = function () {
let list = new OverpassLayerList(this.layer, {})
this.lists.push(list)
list.addTo(this.domContent)
this.listsDom.push(this.domContent)
showMore(this, this.domContent)
}

Loading…
Cancel
Save