Adding the Overpass API data to the map with the help of polygons

This commit is contained in:
2026-04-20 23:13:23 +02:00
parent 0b963a3319
commit 93f88c9933
6 changed files with 81 additions and 41 deletions

View File

@@ -4,8 +4,8 @@ import * as G from 'geojson';
export const buildingSytle = {
color: '#d62305', // Red border
weight: 2, // Border width
fillColor: '#d62305', // Red fill
fillOpacity: 0.1, // Semi-transparent fill
fillColor: '#d4caca', // Red fill
fillOpacity: 1, // Semi-transparent fill
};
// Example GeoJSON data
@@ -28,9 +28,8 @@ export const buildings: G.FeatureCollection = {
{
type: 'Feature',
properties: {
name: 'Gebäude E',
name: 'E',
building: 'university',
center: [8.39007, 49.015],
},
geometry: {
type: 'Polygon',
@@ -48,9 +47,8 @@ export const buildings: G.FeatureCollection = {
{
type: 'Feature',
properties: {
name: 'Gebäude F',
name: 'F',
building: 'university',
center: [8.3901208597194, 49.0156137375335],
},
geometry: {
type: 'Polygon',