Skip to Content
API ReferenceMarkersLzAttributeMarker

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

PropertyTypeDescription
borderColorString?The color of the border as a hex string. (final)
coordinateLatLngThe position for the marker. (final)
draggableboolWhether the marker can be dragged by the user. (final)
floorIdString?The id of the floor in the place for the marker. If the marker is outdoor, this is null. (final)
iconStringThe name of the icon, or an HTTP/HTTPS URL for a remote image. (final)
iconColorString?The color for the icon as a hex string. (final)
iconCornerRadiusdouble?The corner radius of the icon image (iOS only). (final)
imageSizedouble?The size of the marker icon in logical pixels. (final)
imageUrlString?A URL for a remote image to use as the marker icon. (final)
isFlatboolWhether the marker should be rendered flat against the map surface. (final)
opacitydouble?The opacity of the marker, from 0.0 (fully transparent) to 1.0 (fully opaque). (final)
subtitleString?The marker subtitle. This string is displayed in the callout for the associated annotation. (final)
textString?The text next to the icon. (final)
textColorString?The color of the text as a hex string. (final)
textFontNameString?The font name for the text label. (final)
textFontSizedouble?The font size of the text label in logical pixels. (final)
textHaloBlurdouble?The blur radius of the text halo in logical pixels. (final)
textHaloColorString?The color of the text halo (outline) as a hex string. (final)
textHaloWidthdouble?The width of the text halo in logical pixels. (final)
textPositionTextPositionThe position of the text, one of TextPosition. (final)
titleString?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