addLayerCache method

dynamic addLayerCache(
  1. String key,
  2. String layerID,
  3. String sourceID,
  4. AdFeatureCollection collection,
)

Implementation

addLayerCache(String key, String layerID, String sourceID,
    AdFeatureCollection collection) {
  final featureIDs = collection.features.map((e) => e.properties.id).toList();
  _cache[key] = CacheInfo(
      layerID, sourceID, featureIDs, DateTime.now().millisecondsSinceEpoch);
}