Class MBHeatmap

All Implemented Interfaces:
Expression, Function

public class MBHeatmap extends MBExpression
  • Constructor Details

    • MBHeatmap

      public MBHeatmap(JSONArray json)
  • Method Details

    • heatmapDensity

      public Expression heatmapDensity()
      Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the heatmap-color property. Example: ["heatmap-density"]: number
      Returns:
      heat map density expression
    • getExpression

      public Expression getExpression() throws MBFormatException
      Description copied from class: MBExpression
      Determines which expression to use.
      Specified by:
      getExpression in class MBExpression
      Throws:
      MBFormatException