Interface BaseHeatmapLayer.HasGradient

All Known Subinterfaces:
BaseHeatmapLayer.HasBaseHeatmapLayerOptions
All Known Implementing Classes:
BaseHeatmapLayerOptions, HeatmapLayer, HeatmapLayerOptions, NoOpHeatmapLayer
Enclosing class:
BaseHeatmapLayer

public static interface BaseHeatmapLayer.HasGradient
Interface to be implemented by layers that should provide "gradient" attribute management.

For more details see: Heatmap docs

  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setGradient(List<String> gradient)
    Sets the color gradient of the heatmap, specified as a list of CSS color strings.
  • Method Details

    • getGradient

      List<String> getGradient()
      Returns:
      list of CSS color strings or null if not set
    • setGradient

      void setGradient(List<String> gradient)
      Sets the color gradient of the heatmap, specified as a list of CSS color strings.

      The default value is ['#00f', '#0ff', '#0f0', '#ff0', '#f00'].

      For more details see: setGradient() docs

      Parameters:
      gradient - list of CSS color strings