0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2024-12-23 10:32:58 +03:00
free-ozon-dpr/src/main.js
2024-06-13 20:57:21 +03:00

22 lines
487 B
JavaScript

import "./style.css";
import map from "./map";
import "./info-popup";
import "./popup";
import "./analytics";
import mergedData from "../merged-data.json";
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);