getMarkerById method

Marker getMarkerById(
  1. int id
)

Get the marker with the given id.

Parameters

  • IN id The marker id.

Returns

Throws

  • An exception if it fails.

Implementation

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

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