markers property

MapViewMarkerCollections get markers

Get access to the collections of visible markers.

Returns

  • The markers collection

Throws

  • An exception if it fails.

Implementation

MapViewMarkerCollections get markers {
  if (_markers == null) {
    final OperationResult resultString = objectMethod(
      _pointerId,
      'MapViewPreferences',
      'markers',
    );

    _markers = MapViewMarkerCollections.init(
      resultString['result'],
      _mapId,
      _mapPointerId,
    );
  }
  return _markers!;
}