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
| Property | Type | Description |
|---|---|---|
accessibility | MapAccessibilityConfig? | Accessibility configuration for VoiceOver/TalkBack support. (final) |
bearing | double? | Initial map bearing (rotation) in degrees. (final) |
compassIcon | String? | Custom icon asset name for the compass button. (final) |
latitude | double | Initial center latitude of the map. (final) |
limitToRadius | double? | Restrict panning to a radius (in meters) from the initial center. (final) |
locationIcon | String? | Custom icon asset name for the location button. (final) |
locationIconWithBearing | String? | Custom icon asset name for the location button when bearing is active. (final) |
longitude | double | Initial center longitude of the map. (final) |
maxZoom | double? | Maximum zoom level allowed. (final) |
minZoom | double? | Minimum zoom level allowed. (final) |
parentPlaceId | String? | Optional Lazarillo place ID to scope the map to a specific parent place. (final) |
pitch | double? | Initial camera pitch (tilt) in degrees. (final) |
showCompass | bool | Whether to show the compass button. Defaults to true. (final) |
showFloorSelector | bool | Whether to show the floor selector control for multi-floor buildings. (final) |
showZoomIn | bool | Whether to show the zoom-in button. (final) |
showZoomOut | bool | Whether to show the zoom-out button. (final) |
showZoomToLocation | bool | Whether to show the zoom-to-location button. (final) |
zoom | double | Initial zoom level. Defaults to 18. (final) |
Methods
toJson
toJson() → Map<String, dynamic>Last updated on