Adding the Overpass API data to the map with the help of polygons
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user