Expected Behavior
darkmode when using vectore with
"mode": "night",
Current Behavior
no darkmode on the left
Possible Solution
some where around here the order and mode atrribut go missing:
|
let layers = config.mapLayers.map(function (layer) { |
|
return { |
|
name: layer.name, |
|
layer: |
|
layer.type == "vector" |
|
? L.maplibreGL({ |
|
style: layer.url, |
|
attributionControl: { customAttribution: layer.config.attribution }, |
|
maxZoom: layer.config.maxZoom, |
|
}) |
|
: L.tileLayer( |
|
layer.url.replace( |
|
"{format}", |
|
document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp") === 0 |
|
? "webp" |
|
: "png", |
|
), |
|
layer.config, |
|
), |
|
}; |
|
}); |
Steps to Reproduce
- Use this branch: https://github.com/freifunkMUC/meshviewer/tree/test-vectore
- Run
npm install
- Run
npm run dev
- Open the Map and switch between
versatiles light and versatiles dark on the map Layer
Context
Your Environment
- Version used: ``
- Browser Name and version: ``
- Operating System and version (desktop or mobile): ``
- Link to your project: ``
Screenshots

Expected Behavior
darkmode when using vectore with
"mode": "night",Current Behavior
no darkmode on the left
Possible Solution
some where around here the
orderandmodeatrribut go missing:meshviewer/lib/map.ts
Lines 84 to 104 in 4745218
Steps to Reproduce
npm installnpm run devversatiles lightandversatiles darkon the map LayerContext
Your Environment
Screenshots