getPointsGroupHead method

Marker? getPointsGroupHead(
  1. 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 null when not available.

See also:

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']);
}