Skip to content

KrossMapProperties

Farman Ullah Khan edited this page Aug 5, 2025 · 1 revision

🗺️ KrossMapProperties Data Class Documentation

Defines display and interaction settings for a map view across platforms.


🔹 Overview

Element Type Description
KrossMapProperties Data Class Represents visual and gesture-based settings for a map.

📦 KrossMapProperties

Definition:
Encapsulates map UI options like traffic overlays, compass visibility, gesture handling, and more.

Properties

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.

✅ Usage Example

val mapProperties = KrossMapProperties(
    showTraffic = true,
    showCompass = true,
    showBuildings = true,
    showPointOfInterest = true, // iOS only
    enableRotationGesture = true,
    enableTiltGesture = true,
    enableScrollGesture = true
)

Clone this wiki locally