0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2024-12-24 02:52:58 +03:00
free-ozon-dpr/main.js

20 lines
441 B
JavaScript
Raw Normal View History

2024-06-05 14:56:19 +03:00
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);