Rallista / maplibre-compose-playground

Composable MapLibre for Android Kotlin.
Mozilla Public License 2.0
6 stars 3 forks source link

Implement addition UiSettings to configure compass, logo, and attribute views #24

Closed Archdoog closed 2 months ago

Archdoog commented 2 months ago

Like https://github.com/stadiamaps/maplibre-swiftui-dsl-playground/blob/50673f08fa9c150bbed0de7364f67a7ae0b894d2/Sources/MapLibreSwiftDSL/MapControls.swift, we want to be able to configure the MapLibre default map control views.

This is started in compose/src/main/java/com/maplibre/compose/ramani/UiSettings.kt

These include:

Configuration should include show/hide as well as the position control.

On iOS position is controlled by which area of the screen (e.g. topRight) and a padding. See this old comment for iOS https://stackoverflow.com/questions/49130712/mapbox-default-compassview-when-repositioned-gives-weird-outcome/57560116#57560116 😆.

Archdoog commented 2 months ago

https://maplibre.org/maplibre-native/android/api/-map-libre%20-native%20-android/org.maplibre.android.maps/-map-libre-map-options/index.html