слой с ортофотопланом
This commit is contained in:
parent
56df5d6fba
commit
b5738253e5
@ -6,7 +6,7 @@
|
||||
<link rel="stylesheet"
|
||||
href="{% static 'lte/plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}?ver={% settings_value 'APP_VER' %}">
|
||||
<link rel="stylesheet" href="{% static 'js/ol/theme/default/style.css' %}?ver={% settings_value 'APP_VER' %}">
|
||||
<link rel="stylesheet" href="{% static 'js/ol/theme/default/ol.css' %}?ver={% settings_value 'APP_VER' %}">
|
||||
<link rel="stylesheet" href="{% static 'js/ol/theme/default/ol.css' %}">
|
||||
<style>
|
||||
|
||||
/* Позиционирование контрола в правом нижнем углу */
|
||||
@ -99,8 +99,8 @@
|
||||
return new ol.style.Style({
|
||||
image: new ol.style.Icon({
|
||||
src: '/static/img/belaz.png',
|
||||
width: 40,
|
||||
height: 25
|
||||
width: 30,
|
||||
height: 20
|
||||
}),
|
||||
text: createGTOStateNumTextStyle(feature, resolution)
|
||||
})
|
||||
@ -326,33 +326,24 @@
|
||||
});
|
||||
mineBorderLayer.set('name', 'Границы ПРГР')
|
||||
|
||||
// const imageExtent = ol.proj.transformExtent(
|
||||
// [86.639393, 53.959368, 86.698046, 54.004628], // [minLon, minLat, maxLon, maxLat]
|
||||
// 'EPSG:4326', // Исходная проекция
|
||||
// 'EPSG:3857' // Целевая проекция
|
||||
// );
|
||||
scanLayer = new ol.layer.Tile({
|
||||
source: new ol.source.XYZ({
|
||||
url: '/static/img/tiles/{z}/{x}/{y}.png',
|
||||
}),
|
||||
});
|
||||
scanLayer.set('name', 'Ортофотоплан')
|
||||
|
||||
// const scanSource = new ol.source.ImageStatic({
|
||||
// url: '/static/img/mine.png',
|
||||
// imageExtent: imageExtent // Преобразованные координаты
|
||||
// });
|
||||
|
||||
// const scanLayer = new ol.layer.Image({
|
||||
// source: scanSource
|
||||
// });
|
||||
// Создание карты
|
||||
map = new ol.Map({
|
||||
target: 'map', // ID элемента, куда встроится карта
|
||||
controls: [
|
||||
{#new ol.control.Zoom(),#}
|
||||
new ol.control.FullScreen(),
|
||||
new LayerSwitcherControl(),
|
||||
new ol.control.ScaleLine(),
|
||||
new ol.control.ZoomSlider()
|
||||
],
|
||||
layers: [
|
||||
OSM,
|
||||
// scanLayer,
|
||||
scanLayer,
|
||||
mineBorderLayer,
|
||||
GTOLayer,
|
||||
SPLayer,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user