refactor(react/collections): reintroduce scale

This commit is contained in:
Elian Doran
2025-09-04 22:05:44 +03:00
parent 9adf9a841c
commit ec378a8fc5
3 changed files with 14 additions and 11 deletions

View File

@@ -39,14 +39,6 @@ export default class GeoView extends ViewMode<MapData> {
args.$parent.append(this.$root);
}
async renderMap() {
const layerName = this.parentNote.getLabelValue("map:style") ?? ;
if (this.parentNote.hasLabel("map:scale")) {
L.control.scale().addTo(map);
}
}
async #onMapInitialized() {
const map = this.map;
if (!map) {