mirror of
https://github.com/Maks1mS/free-ozon-dpr.git
synced 2024-12-23 18:42:59 +03:00
22 lines
487 B
JavaScript
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);
|