feat(views/geo): add combobox to adjust style

This commit is contained in:
Elian Doran
2025-07-24 15:14:43 +03:00
parent 8c4ed2d4da
commit f90bf1ce7c
3 changed files with 48 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ export default class GeoView extends ViewMode<MapData> {
worldCopyJump: true
});
const layerName = this.parentNote.getLabelValue("mapLayer") ?? "openstreetmap";
const layerName = this.parentNote.getLabelValue("mapStyle") ?? "openstreetmap";
const layer = (await getMapLayer(layerName));
layer.addTo(map);
@@ -268,7 +268,7 @@ export default class GeoView extends ViewMode<MapData> {
}
// Full reload if map layer is changed.
if (loadResults.getAttributeRows().some(attr => attr.name === "mapLayer" && attributes.isAffecting(attr, this.parentNote))) {
if (loadResults.getAttributeRows().some(attr => attr.name === "mapStyle" && attributes.isAffecting(attr, this.parentNote))) {
return true;
}
}