activateHighlight method
- List<
Landmark> landmarks, { - HighlightRenderSettings? renderSettings,
- int highlightId = 0,
Activate highlight
Parameters
- IN landmarks The landmarks to be highlighted
- IN renderSettings Specifies the way the provided landmarks are displayed on the map
- IN highlightId The highlighted collection id (optional). If a highlighted collection with this id already exists, it will be replaced
Highlighted collections will be displayed in ascending order sorted by highlightId
Throws
- An exception if it fails.
Implementation
void activateHighlight(
final List<Landmark> landmarks, {
HighlightRenderSettings? renderSettings,
final int highlightId = 0,
}) {
renderSettings ??= HighlightRenderSettings();
final LandmarkList landmarkList = LandmarkList.fromList(landmarks);
objectMethod(
_pointerId,
'MapView',
'activateHighlight',
args: <String, dynamic>{
'landmarks': landmarkList.pointerId,
'renderSettings': renderSettings.toJson(),
'highlightId': highlightId,
},
);
}