getPointsGroupHead method

Marker getPointsGroupHead(
  1. int id
)

Gets the points group head for the given marker id.

This requires the collection to be added to a map view collection with MarkerCollectionRenderSettings.buildPointsGroupConfig set to true

If points group head info is not available the function will return a reference to the queried marker and will set the API error accordingly

If markerId is already a points group head the function will return a reference to the queried marker and will set the API error accordingly

Parameters

  • IN id The group id.

Returns

  • Points group head marker

Throws

  • An exception if it fails.

Implementation

Marker getPointsGroupHead(final int id) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MarkerCollection',
    'getPointsGroupHead',
    args: id,
  );

  return Marker.init(resultString['result'], _mapId);
}