-
Notifications
You must be signed in to change notification settings - Fork 5
KrossMapProperties
Farman Ullah Khan edited this page Aug 5, 2025
·
1 revision
Defines display and interaction settings for a map view across platforms.
| Element | Type | Description |
|---|---|---|
KrossMapProperties |
Data Class | Represents visual and gesture-based settings for a map. |
Definition:
Encapsulates map UI options like traffic overlays, compass visibility, gesture handling, and more.
| Property | Type | Default | Description |
|---|---|---|---|
showTraffic |
Boolean |
true |
Shows live traffic data on the map. |
showCompass |
Boolean |
true |
Displays a compass on the map UI. |
showBuildings |
Boolean |
true |
Renders 3D buildings where available. |
showPointOfInterest |
Boolean |
true |
Displays POIs on the map (iOS only). |
enableRotationGesture |
Boolean |
true |
Enables rotation gestures for map interaction. |
enableTiltGesture |
Boolean |
true |
Allows tilting the map with gestures. |
enableScrollGesture |
Boolean |
true |
Enables scrolling/panning with touch gestures. |
val mapProperties = KrossMapProperties(
showTraffic = true,
showCompass = true,
showBuildings = true,
showPointOfInterest = true, // iOS only
enableRotationGesture = true,
enableTiltGesture = true,
enableScrollGesture = true
)