Feat 3d terrain buildings#290
Draft
Momototoro wants to merge 9 commits into
Draft
Conversation
tordans
requested changes
Jun 9, 2026
Comment on lines
+173
to
+182
| // 1. 3D-Gelände (DEM) hinzufügen mit dem vorhandenen MapTiler Key | ||
| map.addSource('maptiler-terrain', { | ||
| type: 'raster-dem', | ||
| url: `https://api.maptiler.com/tiles/terrain-dem/tiles.json?key=ECOoUBmpqklzSCASXxcu`, | ||
| tileSize: 256, | ||
| }) | ||
| map.setTerrain({ source: 'maptiler-terrain', exaggeration: 1.5 }) | ||
|
|
||
| // 2. 3D-Gebäude aus den Vektorkacheln extrudieren (wird ab Zoom-Stufe 15 sichtbar) | ||
| map.addLayer({ |
Contributor
There was a problem hiding this comment.
Verschieben in <Source> <Layer>, siehe https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/react-map-gl
| @@ -287,7 +316,7 @@ export const RegionMap = () => { | |||
|
|
|||
| <Search /> | |||
|
|
|||
| <NavigationControl showCompass={false /* TODO: See Story */} visualizePitch={true} /> | |||
| <NavigationControl showCompass={true /* TODO: See Story */} visualizePitch={true} /> | |||
Contributor
There was a problem hiding this comment.
Suggested change
| <NavigationControl showCompass={true /* TODO: See Story */} visualizePitch={true} /> | |
| <NavigationControl showCompass={true} visualizePitch={true} /> |
Comment on lines
+55
to
+59
| {geometry && (geometry.type === 'LineString' || geometry.type === 'MultiLineString') && ( | ||
| <Disclosure title="Höhenprofil"> | ||
| <InspectorFeatureElevationProfile feature={feature} /> | ||
| </Disclosure> | ||
| )} |
Contributor
There was a problem hiding this comment.
- Einen Component
- Innen: early return guard
null(const visible=COND)
| @@ -270,7 +299,7 @@ export const RegionMap = () => { | |||
| onData={startMapDataLoading} | |||
| onIdle={finishMapDataLoading} | |||
| doubleClickZoom={true} | |||
| dragRotate={false} | |||
| dragRotate={true} | |||
Contributor
There was a problem hiding this comment.
UX: Nur conditional an, wenn 3D an?
| capacity: 'Geschätzte oder explizit erfasste Anzahl von Stellplätzen.', | ||
| capacity_source: 'Herkunft der Stellplatzanzahl inklusive Schätz- oder Umverteilungslogik.', | ||
| orientation: 'Ausrichtung der Fahrzeuge im Straßenland zur Verkehrsrichtung.', | ||
| staggered: | ||
| 'Besondere Merkmale zur Parkweise, insbesondere bei alternierendem/versetztem Parken auf Fahrbahnen, die zu schmal sind um auf beiden Seiten gleichzeitig zu parken, keine Markierungen und Beschilderungen aufweisen, die das Parken regeln und auf denen gewöhnlich wechselseitig abschnittsweise auf der einen oder anderen Straßenseite geparkt wird oder geparkt werden kann.', |
| return null | ||
| } | ||
|
|
||
| if (elevationData.length === 0) { |
Contributor
There was a problem hiding this comment.
Was ist denn wenn leer und not loading? => Error case Message
| ) : null | ||
| } | ||
|
|
||
| // --- SVG Scaling & Math --- |
| // Statistics calculation | ||
| let climb = 0 | ||
| let descent = 0 | ||
| for (let i = 1; i < elevationData.length; i++) { |
|
|
||
| return ( | ||
| <div className="flex flex-col gap-2.5 rounded-lg border border-gray-200 bg-gray-50/30 p-3"> | ||
| {/* biome-ignore lint/a11y/noStaticElementInteractions: Hover tracking on container */} |
| )} | ||
| </div> | ||
|
|
||
| {/* Summary Statistics */} |
5752ee3 to
4423d4e
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Satisfies react-compiler and react-hooks lint rules after oxlint 1.70 upgrade. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
4423d4e to
d5b6356
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hier Nummer 2
https://github.com/FixMyBerlin/private-issues/issues/3303
PR Review:
feat-3d-terrain-buildingsBranch Summary
developChanged Files (6 total)
RegionMap.tsxModifiedfill-extrusion), drag-rotate, and the compass UI.InspectorFeatureElevationProfile.tsxNewInspectorFeatureTilda.tsxModified<Disclosure title="Höhenprofil">forLineStringandMultiLineStringfeatures.byTableName.gen.tsModifiedinspectorDescriptions.gen.tsModifiedmasterportalByTableName.gen.tsModified