Skip to Content

MapConfiguration

Configuration for the initial state and UI controls of a Lazarillo map.

Constructors

MapConfiguration.new

MapConfiguration.new({String? parentPlaceId, double zoom = 18, required double latitude, required double longitude, bool showFloorSelector = false, bool showZoomIn = false, bool showZoomOut = false, bool showZoomToLocation = false, String? compassIcon, String? locationIcon, String? locationIconWithBearing, MapAccessibilityConfig? accessibility, bool showCompass = true, double? minZoom, double? maxZoom, double? bearing, double? pitch, double? limitToRadius})

Creates a map configuration with the given parameters. const

Properties

PropertyTypeDescription
accessibilityMapAccessibilityConfig?Accessibility configuration for VoiceOver/TalkBack support. (final)
bearingdouble?Initial map bearing (rotation) in degrees. (final)
compassIconString?Custom icon asset name for the compass button. (final)
latitudedoubleInitial center latitude of the map. (final)
limitToRadiusdouble?Restrict panning to a radius (in meters) from the initial center. (final)
locationIconString?Custom icon asset name for the location button. (final)
locationIconWithBearingString?Custom icon asset name for the location button when bearing is active. (final)
longitudedoubleInitial center longitude of the map. (final)
maxZoomdouble?Maximum zoom level allowed. (final)
minZoomdouble?Minimum zoom level allowed. (final)
parentPlaceIdString?Optional Lazarillo place ID to scope the map to a specific parent place. (final)
pitchdouble?Initial camera pitch (tilt) in degrees. (final)
showCompassboolWhether to show the compass button. Defaults to true. (final)
showFloorSelectorboolWhether to show the floor selector control for multi-floor buildings. (final)
showZoomInboolWhether to show the zoom-in button. (final)
showZoomOutboolWhether to show the zoom-out button. (final)
showZoomToLocationboolWhether to show the zoom-to-location button. (final)
zoomdoubleInitial zoom level. Defaults to 18. (final)

Methods

toJson

toJson() → Map<String, dynamic>
Last updated on