ограничение слоя ортофотоплана

This commit is contained in:
zakhy 2025-01-15 09:25:19 +07:00
parent b5738253e5
commit 826718dea2

View File

@ -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', 'Ортофотоплан')