0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2025-04-06 17:33:43 +03:00
free-ozon-dpr/src/main.js
2024-06-08 19:58:42 +03:00

20 lines
442 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);