2024-06-05 14:56:19 +03:00
|
|
|
import "./style.css";
|
|
|
|
|
|
|
|
import map from "./map";
|
|
|
|
|
2024-06-09 08:04:37 +03:00
|
|
|
import "./info-popup";
|
2024-06-05 14:56:19 +03:00
|
|
|
import "./popup";
|
2024-06-13 20:57:21 +03:00
|
|
|
import "./analytics";
|
2024-06-05 14:56:19 +03:00
|
|
|
|
2024-06-08 20:18:09 +03:00
|
|
|
import mergedData from "../merged-data.json";
|
2024-06-05 14:56:19 +03:00
|
|
|
import { createFeatures } from "./features";
|
|
|
|
import VectorSource from "ol/source/Vector";
|
|
|
|
import VectorLayer from "ol/layer/Vector";
|
|
|
|
|
|
|
|
const features = createFeatures(mergedData);
|
|
|
|
const vectorSource = new VectorSource({
|
|
|
|
features,
|
|
|
|
});
|
|
|
|
const vectorLayer = new VectorLayer({
|
|
|
|
source: vectorSource,
|
|
|
|
});
|
|
|
|
map.addLayer(vectorLayer);
|