Adding a zoom in on the building and lock movement

This commit is contained in:
2026-04-09 22:09:18 +02:00
parent 0848edb832
commit 81168f90d7
6 changed files with 135 additions and 33 deletions

View File

@@ -22,12 +22,48 @@ export const examplePolygon: G.Polygon = {
],
};
export const buildingE: G.Feature = {
type: 'Feature',
properties: {
name: 'Gebäude E',
building: 'university',
center: [8.39007, 49.015],
},
geometry: examplePolygon,
export const buildings: G.FeatureCollection = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
properties: {
name: 'Gebäude E',
building: 'university',
center: [8.39007, 49.015],
},
geometry: {
type: 'Polygon',
coordinates: [
[
[8.3897067, 49.0149349], // Southwest corner
[8.3904111, 49.0149078], // Southeast corner
[8.3904345, 49.0151542], // Northeast corner
[8.3897302, 49.0151832], // Northwest corner
[8.3897067, 49.0149349], // Closing the polygon by repeating the first point
],
],
},
},
{
type: 'Feature',
properties: {
name: 'Gebäude F',
building: 'university',
center: [8.3901208597194, 49.0156137375335],
},
geometry: {
type: 'Polygon',
coordinates: [
[
[8.3897585, 49.015502], // Southwest corner
[8.3904592, 49.0154731], // Southeast corner
[8.3904833, 49.0157255], // Northeast corner
[8.3897827, 49.0157543], // Northwest corner
[8.3897585, 49.015502], // Closing the polygon by repeating the first point
],
],
},
},
],
};