addPolygons method

void addPolygons(
  1. Set<Polygon> polygonsToAdd
)

Adds a set of Polygon objects to the cache.

Wraps each Polygon into its corresponding PolygonController.

Implementation

void addPolygons(Set<Polygon> polygonsToAdd) {
  polygonsToAdd.forEach(_addPolygon);
}