Class HeatmapRenderer

All Implemented Interfaces:

public final class HeatmapRenderer extends Renderer

Uses the points in a layer to calculate and display the relative density of points on a map. A heat map is displayed as smoothly varying sets of colors ranging from cool (low density of points) to hot (high density of points).

Currently, the HeatmapRenderer has no members. However, ArcGISMap will use HeatmapRenderer to display a heat map if one is defined in a web map.

An ArcGISMap with a heat map from an ArcGIS Online URL:

 final ArcGISMap map = new ArcGISMap("" + webMapId);

 // check that ArcGISMap contains a HeatmapRenderer
 map.addDoneLoadingListener(() -> {
   for (Layer layer : map.getOperationalLayers()) {
     if (renderer instanceof HeatmapRenderer) {
       // map contains a heat map layer rendered with HeatmapRenderer
       FeatureLayer featureLayer = (FeatureLayer) layer;
       Renderer renderer = featureLayer.getRenderer();