LzAttributeMarker
A marker with customizable text, colors, and text positioning.
Use this for markers that need labels, colored icons, or border styling.
Constructors
LzAttributeMarker.new
LzAttributeMarker.new(String icon, LatLng coordinate, {String? title, String? subtitle, String? floorId, String? iconColor, String? text, String? textColor, TextPosition textPosition = TextPosition.right, String? borderColor, double? imageSize, double? opacity, String? textHaloColor, double? textHaloWidth, double? textHaloBlur, double? textFontSize, String? textFontName, double? iconCornerRadius, bool draggable = false, bool isFlat = false, String? imageUrl})LzAttributeMarker.fromJson
LzAttributeMarker.fromJson(Map<String, dynamic> json)factory
Properties
| Property | Type | Description |
|---|---|---|
borderColor | String? | The color of the border as a hex string. (final) |
coordinate | LatLng | The position for the marker. (final) |
draggable | bool | Whether the marker can be dragged by the user. (final) |
floorId | String? | The id of the floor in the place for the marker. If the marker is outdoor, this is null. (final) |
icon | String | The name of the icon, or an HTTP/HTTPS URL for a remote image. (final) |
iconColor | String? | The color for the icon as a hex string. (final) |
iconCornerRadius | double? | The corner radius of the icon image (iOS only). (final) |
imageSize | double? | The size of the marker icon in logical pixels. (final) |
imageUrl | String? | A URL for a remote image to use as the marker icon. (final) |
isFlat | bool | Whether the marker should be rendered flat against the map surface. (final) |
opacity | double? | The opacity of the marker, from 0.0 (fully transparent) to 1.0 (fully opaque). (final) |
subtitle | String? | The marker subtitle. This string is displayed in the callout for the associated annotation. (final) |
text | String? | The text next to the icon. (final) |
textColor | String? | The color of the text as a hex string. (final) |
textFontName | String? | The font name for the text label. (final) |
textFontSize | double? | The font size of the text label in logical pixels. (final) |
textHaloBlur | double? | The blur radius of the text halo in logical pixels. (final) |
textHaloColor | String? | The color of the text halo (outline) as a hex string. (final) |
textHaloWidth | double? | The width of the text halo in logical pixels. (final) |
textPosition | TextPosition | The position of the text, one of TextPosition. (final) |
title | String? | The marker title. Although this property is optional, if you support the selection of annotations in your map view, you are expected to provide this property. This string is displayed in the callout for the associated annotation, when the marker is clicked. (final) |
Methods
toJson
toJson() → Map<String, dynamic>Last updated on