addMarkers abstract method

void addMarkers(
  1. Iterable<Marker<T>> markers
)

Adds multiple markers to the datastore in a batch operation.

This is more efficient than calling addMarker multiple times as it allows for optimized batch processing and avoids multiple internal data structure updates.

markers The collection of markers to add

Note: requestRepaint is not called automatically. Call it after the batch operation to update the display.

datastore.addMarkers([marker1, marker2, marker3]);
datastore.requestRepaint();

Implementation

void addMarkers(Iterable<Marker<T>> markers);