Fix tile sizes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user