Show overpass icons in layer tree
This commit is contained in:
parent
3e235a345c
commit
c3abfa9c9a
3 changed files with 24 additions and 7 deletions
|
|
@ -170,7 +170,7 @@ BR.LayersTab = BR.ControlLayers.extend({
|
|||
core: {
|
||||
multiple: false,
|
||||
themes: {
|
||||
icons: false,
|
||||
icons: true,
|
||||
dots: false,
|
||||
},
|
||||
data: treeData,
|
||||
|
|
@ -188,6 +188,7 @@ BR.LayersTab = BR.ControlLayers.extend({
|
|||
function createRootNode(name) {
|
||||
var rootNode = {
|
||||
text: i18next.t('sidebar.layers.category.' + name, name),
|
||||
icon: false,
|
||||
state: {
|
||||
disabled: true,
|
||||
},
|
||||
|
|
@ -218,6 +219,7 @@ BR.LayersTab = BR.ControlLayers.extend({
|
|||
childNode = {
|
||||
id: id,
|
||||
text: getText(props, parent),
|
||||
icon: self.layersConfig.getOverpassIconUrl(props.icon) || false,
|
||||
state: {
|
||||
checked: self.layersConfig.isDefaultLayer(id, props.overlay),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue