0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2024-12-23 18:42:59 +03:00
free-ozon-dpr/main.js
2024-06-05 14:56:19 +03:00

20 lines
441 B
JavaScript

import "./style.css";
import map from "./map";
import "./popup";
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);