getPointsGroupHead method
- int markerId
Get the head marker for the points group that contains markerId.
This requires the collection to be configured for points group rendering on the map (see MarkerCollectionRenderSettings.buildPointsGroupConfig). If group information is not available the API may return a reference to the queried marker and set an error status.
Parameters
markerId: An id of a marker that belongs to the group.
Returns
- The group head Marker, or
nullwhen not available.
See also:
- getPointsGroupComponents to retrieve the members of a points group.
Implementation
Marker? getPointsGroupHead(final int markerId) {
final OperationResult resultString = objectMethod(
pointerId,
'MarkerCollection',
'getPointsGroupHead',
args: markerId,
);
if (resultString['result'] == -1) {
return null;
}
return Marker.init(resultString['result']);
}