Skip to content

Commit

Permalink
styleParser from entry methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Mar 18, 2024
1 parent 93d320c commit 8108b48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/layers/legends/categorized.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default (layer) => {

let classList = `label ${layer.filter && 'switch' ||''} ${cat.disabled && 'disabled' ||''}`;

let cat_label = (cat.label || cat.value) + (cat.count? ` [${cat.count}]`:'')
let cat_label = cat.label + (cat.count? ` [${cat.count}]`:'')

// Cat label with filter function.
let label = mapp.utils.html`
Expand Down
3 changes: 3 additions & 0 deletions lib/ui/locations/entries/mvt_clone.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export default entry => {
entry.style.default = {...entry.location?.style, ...entry.style.default}
}

// Update entry.style config.
mapp.layer.styleParser(entry)

// Create clone VectorTile layer.
entry.L = new ol.layer.VectorTile({
source: entry.Layer.L.getSource(),
Expand Down
3 changes: 3 additions & 0 deletions lib/ui/locations/entries/vector_layer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export default entry => {
entry.style.default = {...entry.location?.style, ...entry.style.default}
}

// Update entry.style config.
mapp.layer.styleParser(entry)

// Create checkbox to control geometry display.
const chkbox = mapp.ui.elements.chkbox({
label: entry.label || 'MVT Clone',
Expand Down

0 comments on commit 8108b48

Please sign in to comment.