Fix tile sizes

This commit is contained in:
2021-11-07 13:52:41 +01:00
parent 4ff3bb2c39
commit 8b5ba6894e
6 changed files with 12 additions and 3 deletions

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