getHeatmapWeightEntries method

List<MapEntry<double, double>> getHeatmapWeightEntries()

Generates a list of MapEntry for heatmap weight based on zoom levels.

Implementation

List<MapEntry<double, double>> getHeatmapWeightEntries() {
  List<MapEntry<double, double>> weightEntries = [];
  for (int i = 0; i < zoomStops.length; i++) {
    weightEntries.add(MapEntry(zoomStops[i], zoomWeights[i]));
  }
  return weightEntries;
}