Point Legend
constructor(id: String, title: String? = null, labelFontWeight: FontWeight = FontWeight.Normal, titleFontSize: TextUnit = LegendDefaults.titleFontSize, titleFontWeight: FontWeight = LegendDefaults.titleFontWeight, titleColorValue: Color = LegendDefaults.titleColor, labelFontSize: TextUnit = PointLegendDefaults.labelFontSize, labelColor: Color = PointLegendDefaults.labelColor, radius: Double = PointLegendDefaults.radius.value.toDouble(), items: List<PointLegendItem> = emptyList(), itemResolver: PointLegendFeatureResolver? = null, layerId: String? = null, units: MeasurementUnits = MeasurementUnits.IMPERIAL, margins: Margin = Margin(width = 4.dp.value, height = 4.dp.value))
Parameters
id
Unique identifier used when registering the legend with a LegendControl.
title
Display title shown above the legend content.
title Color Value
Color of the legend title.
label Font Size
Font size for legend item labels.
label Color
Color of the text labels.
radius
Radius for the circular glyph drawn for each legend item.
items
Static items rendered by the legend when no resolver is provided.
item Resolver
Optional resolver that converts queried features into dynamic legend items.
layer Id
Optional layer identifier (or regex) used to scope dynamic legend updates.
units
Units currently applied to any measurement values drawn by the legend.