Fix tile sizes

This commit is contained in:
franzz committed 2021-11-07 13:52:41 +01:00
1 parent 6b42fbb450
commit 1f5f2e27c0
6 files changed
+12 -3

No files matched your search

+2
View File
@@ -368,6 +368,8 @@ function setMapLayers(asLayers) {
$.each(asLayers, function(iKey, asLayer) {
oSpot.tmp('layers')[oSpot.lang('map_'+asLayer.codename)] = L.tileLayer(self.tmp('tile_api'), {
id: asLayer.geo_name,
tileSize: parseInt(asLayer.tile_size),
zoomOffset: (parseInt(asLayer.tile_size) / -256 + 1),
minZoom: parseInt(asLayer.min_zoom),
maxZoom: parseInt(asLayer.max_zoom),
attribution: asLayer.attribution