мелкие исправления
This commit is contained in:
parent
04ea0b251d
commit
f4b17a2f25
@ -66,6 +66,9 @@
|
||||
|
||||
let mineBorderLayer = {}
|
||||
|
||||
let scanSource = {}
|
||||
let scanLayer = {}
|
||||
|
||||
let centerLat = '{{lon}}'
|
||||
let centerLon = '{{lat}}'
|
||||
|
||||
@ -189,50 +192,7 @@
|
||||
requestAnimationFrame(animate);
|
||||
}
|
||||
|
||||
|
||||
function initializeMap() {
|
||||
OSM = new ol.layer.Tile({
|
||||
source: new ol.source.OSM(), // Open street Map
|
||||
})
|
||||
OSM.set('name', 'OpenStreet Map')
|
||||
// Источник данных для GTO
|
||||
GTOSource = new ol.source.Vector();
|
||||
|
||||
// Слой для отображения GTO
|
||||
GTOLayer = new ol.layer.Vector({
|
||||
source: GTOSource,
|
||||
style: GTOStyleFunction
|
||||
});
|
||||
GTOLayer.set('name', 'Горнотранспортное оборудование')
|
||||
|
||||
// Источник данных для Vlocation
|
||||
VlocationSource = new ol.source.Vector();
|
||||
|
||||
// Слой для Vlocation
|
||||
VlocationLayer = new ol.layer.Vector({
|
||||
source: VlocationSource,
|
||||
style: VlocationStyleFunction
|
||||
})
|
||||
VlocationLayer.set('name', 'Местоположение сотрудников')
|
||||
|
||||
SPSource = new ol.source.Vector();
|
||||
SPLayer = new ol.layer.Vector({
|
||||
source: SPSource,
|
||||
style: SPStyleFunction
|
||||
});
|
||||
SPLayer.set('name', 'Сейсмические процессы')
|
||||
|
||||
mineBorderLayer = new ol.layer.Vector({
|
||||
source: new ol.source.Vector({
|
||||
url: '/static/border.kml/',
|
||||
format: new ol.format.KML({extractStyles: false}),
|
||||
|
||||
}),
|
||||
style: polygonStyleFunction,
|
||||
});
|
||||
mineBorderLayer.set('name', 'Границы ПРГР')
|
||||
|
||||
class LayerSwitcherControl extends ol.control.Control {
|
||||
class LayerSwitcherControl extends ol.control.Control {
|
||||
/**
|
||||
* @param {Object} [opt_options] Control options.
|
||||
*/
|
||||
@ -325,6 +285,48 @@
|
||||
}
|
||||
}
|
||||
|
||||
function initializeMap() {
|
||||
OSM = new ol.layer.Tile({
|
||||
source: new ol.source.OSM(), // Open street Map
|
||||
})
|
||||
OSM.set('name', 'OpenStreet Map')
|
||||
// Источник данных для GTO
|
||||
GTOSource = new ol.source.Vector();
|
||||
|
||||
// Слой для отображения GTO
|
||||
GTOLayer = new ol.layer.Vector({
|
||||
source: GTOSource,
|
||||
style: GTOStyleFunction
|
||||
});
|
||||
GTOLayer.set('name', 'Горнотранспортное оборудование')
|
||||
|
||||
// Источник данных для Vlocation
|
||||
VlocationSource = new ol.source.Vector();
|
||||
|
||||
// Слой для Vlocation
|
||||
VlocationLayer = new ol.layer.Vector({
|
||||
source: VlocationSource,
|
||||
style: VlocationStyleFunction
|
||||
})
|
||||
VlocationLayer.set('name', 'Местоположение сотрудников')
|
||||
|
||||
SPSource = new ol.source.Vector();
|
||||
SPLayer = new ol.layer.Vector({
|
||||
source: SPSource,
|
||||
style: SPStyleFunction
|
||||
});
|
||||
SPLayer.set('name', 'Сейсмические процессы')
|
||||
|
||||
mineBorderLayer = new ol.layer.Vector({
|
||||
source: new ol.source.Vector({
|
||||
url: '/static/border.kml/',
|
||||
format: new ol.format.KML({extractStyles: false}),
|
||||
|
||||
}),
|
||||
style: polygonStyleFunction,
|
||||
});
|
||||
mineBorderLayer.set('name', 'Границы ПРГР')
|
||||
|
||||
|
||||
// Создание карты
|
||||
map = new ol.Map({
|
||||
@ -460,7 +462,7 @@
|
||||
strong.textContent = "Глубина: "
|
||||
div.appendChild(strong)
|
||||
|
||||
span.textContent = feature.get('depth')
|
||||
span.textContent = feature.get('depth') + " км."
|
||||
div.appendChild(span)
|
||||
|
||||
res.appendChild(div)
|
||||
@ -474,7 +476,7 @@
|
||||
strong.textContent = "Магнитуда: "
|
||||
div.appendChild(strong)
|
||||
|
||||
span.textContent = feature.get('magnitude') + " км."
|
||||
span.textContent = feature.get('magnitude')
|
||||
div.appendChild(span)
|
||||
|
||||
res.appendChild(div)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user