diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index 54d473f..5681ff1 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -328,8 +328,13 @@ scanLayer = new ol.layer.Tile({ source: new ol.source.XYZ({ - url: '/static/img/tiles/{z}/{x}/{y}.png', + url: '/static/img/tiles/{z}/{x}/{y}.png/', }), + extent: ol.proj.transformExtent( + [86.639393, 53.959368, 86.698046, 54.004628], // [minLon, minLat, maxLon, maxLat] + 'EPSG:4326', // Исходная проекция + 'EPSG:3857' // Целевая проекция + ) }); scanLayer.set('name', 'Ортофотоплан')