This commit is contained in:
zakhy 2025-03-04 13:13:29 +07:00
parent 268da30d6a
commit 940404e14e

View File

@ -351,13 +351,14 @@
// Загрузка маркеров
updateMarkers();
{#setInterval(updateMarkers, 5000)#}
setInterval(updateMarkers, 5000)
}
function addVlocationMarker(worker) {
const point = new ol.geom.Point(ol.proj.fromLonLat([worker.lon, worker.lat]));
const feature = new ol.Feature(point);
feature.setProperties({
id: worker.id,
name: worker.name,
lat: worker.lat,
lon: worker.lon,