Add tileSize option

This commit is contained in:
Sascha Hagedorn
2022-03-18 09:39:46 +00:00
committed by Linus Groh
parent 8c3681b6ad
commit 5a64c06af0
4 changed files with 12 additions and 0 deletions
+1
View File
@@ -64,6 +64,7 @@ const DEFAULT_CONFIG = {
color: null,
fillColor: "transparent",
},
tileSize: 256,
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
zoomOffset: 0,
},
+1
View File
@@ -55,6 +55,7 @@ interface Config {
color: OptionalColor;
fillColor: OptionalColor;
};
tileSize: number;
url: string;
zoomOffset: number;
};
+2
View File
@@ -21,6 +21,7 @@
<LTileLayer
:url="url"
:attribution="attribution"
:tileSize="tileSize"
:options="{ maxNativeZoom, maxZoom, zoomOffset }"
/>
@@ -154,6 +155,7 @@ export default {
markerIcon: LCustomMarker,
maxZoom: this.$config.map.maxZoom,
maxNativeZoom: this.$config.map.maxNativeZoom,
tileSize: this.$config.map.tileSize,
url: this.$config.map.url,
zoom: this.$store.state.map.zoom,
zoomOffset: this.$config.map.zoomOffset,