-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
In an effort to simplify configuration of the camera, we should remove the pitch range from the map view camera and add it as a property of the MapView. Once moved, it should be available for manipulation through a view modifier. Note, this modifier could bundle other map configuration similar to how we have a single .mapControls modifier for the logo, attribution and compass.
Why
- This will reduce the code required to build camera state, removing infrequently used types.
- It will align it with other maplibre-native libraries like https://github.com/Rallista/maplibre-compose-playground where configurations like this area specified on the MapView, not the camera itself.
Example
MapView(
styleURL: styleURL,
camera: $camera
)
.mapPitchRange(PitchRange.freeWithinRange(0, 20))Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers