<layer name="heatmap">

<layer name="heatmap"> is used for overlaying a heat map on top of geographical data.

Description

The <layer> element must specify a base table containing geographic data. 1010data has provided a sample of table that contains the necessary data for <layer name="heatmap">. You can find this data in the following location:

pub.demo.geo.counties

Syntax

<dyanmic>
  <widget class_="gmap">
    <layer name="heatmap">
      [1010data Query]
    </layer>
  </widget>
</dynamic>

Attributes

intensity_
Specifies the maximum intensity of a data point on the heat map. The value provided must be an integer. Defaults to the highest density of points on the map.
lat_
Accepts a column name containing valid latitudinal values.
lng_
Accepts a column name containing valid longitudinal values.
opacity_
Accepts a decimal value between 0.0 and 1.0 (inclusive). The higher the value specified the more opaque the heatmap layer.
radius_
Specifies the radius, in pixels, of a single data point in the heat map data set. The default value is 20. This value scales to the current level of zoom of the map.
showlegend_
Accepts a "1" to show a legend of the heat map. The default value is "0".
theme_
Specifies a color theme for the heatmap layer.
weight_
Accepts a column name. Values in the column provided to weight_ will be used as a reference column to weight each lat/long point on the heatmap. The default value is 1.

heatmap layer Example

<dynamic pzpack="{pkg('lat' 'lng' 'zoom' 'nelat' 'nelng' 'swlat' 'swlng'; 40.88604007 -73.97706107 3 '' '' '' '')}">
  <widget class_="gmap" pzvalue_="@pzpack" width_="1383" height_="495">
    <layer name="heatmap" lat_="lat" lng_="long" intensity_="1" radius_="2" weight_="wgt" opacity_="0.3">
      <base table="pub.demo.geo.counties"/>
      <sel value="wgt>0"/>
    </layer>
  </widget>
</dynamic>