createPointAnnotationManager method

Future<PointAnnotationManager> createPointAnnotationManager({
  1. String? id,
  2. String? below,
})

Create a PointAnnotationManager to add/remove/update PointAnnotations on the map.

If id is specified, the string is used as an identifier for a layer and a source backing the create manager. Use below to specify the id of the layer above the annotation layer.

Implementation

Future<PointAnnotationManager> createPointAnnotationManager(
    {String? id, String? below}) async {
  return _mapboxMapsPlatform
      .createAnnotationManager('point', id: id, belowLayerId: below)
      .then((value) => PointAnnotationManager._(
          id: value,
          messenger: _mapboxMapsPlatform.binaryMessenger,
          channelSuffix: _mapboxMapsPlatform.channelSuffix.toString()));
}