Skip to Content
API ReferenceMapMapConstants

MapConstants

object MapConstants

Centralized constants used throughout the LazarilloMap for layer identification, GeoJSON property keys, marker defaults, z-index ordering, and indoor selection styling.

These constants ensure consistent naming across map style layers, route sources, and marker management. They are referenced by LazarilloMap, route painters, and marker utilities to keep layer and property names in sync.

Properties

BORDERED_PLACES_LAYER_ID

const val BORDERED_PLACES_LAYER_ID: String

Layer ID for applying custom border outlines to indoor places based on visual filters.

COLORED_PLACES_LAYER_ID

const val COLORED_PLACES_LAYER_ID: String

Layer ID for applying custom fill colors to indoor places based on visual filters.

DEFAULT_ICON

const val DEFAULT_ICON: String

Default icon name used when no custom icon is specified for a marker.

DEFAULT_ICON_SIZE

const val DEFAULT_ICON_SIZE: Int = 120

Default icon bitmap size in pixels used when rendering marker icons.

DEFAULT_ROUTE_ANIMATION_ICON

const val DEFAULT_ROUTE_ANIMATION_ICON: String

Default icon name used by route step animation/preview marker.

defaultMarkerIcons

val defaultMarkerIcons: HashMap<String, Int>

Registry of built-in marker icon names mapped to their drawable resource IDs.

INDOOR_PREFIX_LAYER

const val INDOOR_PREFIX_LAYER: String

Common prefix applied to all indoor map style layer IDs. Used to identify and filter indoor-specific layers.

INDOOR_SELECTED_PLACE_LAYER_ID

const val INDOOR_SELECTED_PLACE_LAYER_ID: String

Layer ID for highlighting the currently selected indoor place (e.g., a room or POI).

LAYER_AHEAD_LINE

const val LAYER_AHEAD_LINE: String

Layer ID for the route line segment ahead of the user.

LAYER_ANIMATION_MARKER

const val LAYER_ANIMATION_MARKER: String

SymbolLayer for the route animation marker.

LAYER_BEHIND_LINE

const val LAYER_BEHIND_LINE: String

Layer ID for the route line segment behind the user.

LAYER_CURRENT_STEP_AHEAD

const val LAYER_CURRENT_STEP_AHEAD: String

Layer ID for the portion of the current step that is ahead of the user’s projected position.

LAYER_CURRENT_STEP_BEHIND

const val LAYER_CURRENT_STEP_BEHIND: String

Layer ID for the portion of the current step that is behind the user’s projected position.

LAYER_CURRENT_STEPS

const val LAYER_CURRENT_STEPS: String

Layer ID for the route step the user is currently navigating.

LAYER_NEXT_STEPS

const val LAYER_NEXT_STEPS: String

Layer ID for upcoming (future) route step segments.

LAYER_PREV_STEPS

const val LAYER_PREV_STEPS: String

Layer ID for already-traversed route step segments.

LAYER_STATIC_AHEAD_LINE

const val LAYER_STATIC_AHEAD_LINE: String

Layer for static ahead sections.

LAYER_STATIC_BEHIND_LINE

const val LAYER_STATIC_BEHIND_LINE: String

Layer for static behind sections.

MARKERS_Z_INDEX

const val MARKERS_Z_INDEX: Float = 90.0f

Z-index value for marker symbols. Used to order symbols within their layer so that markers render above route lines.

ORIGINAL_IMAGES

val ORIGINAL_IMAGES: Array<String>

Icon names that should retain their original image dimensions and not be resized to DEFAULT_ICON_SIZE. These are typically SVG-based icons that already have appropriate sizing.

PROPERTY_BEARING

const val PROPERTY_BEARING: String

GeoJSON property for the marker bearing (data-driven rotation).

PROPERTY_IS_BEHIND

const val PROPERTY_IS_BEHIND: String

GeoJSON feature property key indicating whether a route segment is behind the user’s position.

PROPERTY_IS_BEHIND_VALUE_NEGATIVE

const val PROPERTY_IS_BEHIND_VALUE_NEGATIVE: String

Value for PROPERTY_IS_BEHIND indicating the segment is ahead of the user.

PROPERTY_IS_BEHIND_VALUE_POSITIVE

const val PROPERTY_IS_BEHIND_VALUE_POSITIVE: String

Value for PROPERTY_IS_BEHIND indicating the segment is behind the user.

PROPERTY_LEVEL

const val PROPERTY_LEVEL: String

GeoJSON feature property key indicating the floor level of a route segment.

PROPERTY_OPACITY

const val PROPERTY_OPACITY: String

GeoJSON property for the marker opacity (data-driven visibility).

ROUTE_LINES_Z_INDEX

const val ROUTE_LINES_Z_INDEX: Float = 89.0f

Z-index value for route line symbols. Lower than MARKERS_Z_INDEX so route lines render beneath markers.

SOURCE_ANIMATION_MARKER

const val SOURCE_ANIMATION_MARKER: String

GeoJSON source for the route animation marker (updated every frame).

SOURCE_ROUTE

const val SOURCE_ROUTE: String

GeoJSON source ID used for all route geometry data (legacy single-source).

SOURCE_ROUTE_CURRENT

const val SOURCE_ROUTE_CURRENT: String

GeoJSON source for the current section split (updated every animation tick).

SOURCE_ROUTE_STATIC_AHEAD

const val SOURCE_ROUTE_STATIC_AHEAD: String

GeoJSON source for future sections ahead of the current step (static between steps).

SOURCE_ROUTE_STATIC_BEHIND

const val SOURCE_ROUTE_STATIC_BEHIND: String

GeoJSON source for completed sections behind the current step (static between steps).

Last updated on