| addWebGLHeatmap {leaflet.extras} | R Documentation |
Add a webgl heatmap
Adds a heatmap with data from a GeoJSON/TopoJSON file/url
Adds a heatmap with data from a KML file/url
Adds a heatmap with data from a CSV file/url
Adds a heatmap with data from a GPX file/url
removes the webgl heatmap
clears the webgl heatmap
addWebGLHeatmap(map, lng = NULL, lat = NULL, intensity = NULL, layerId = NULL, group = NULL, size = "30000", units = "m", opacity = 1, gradientTexture = NULL, alphaRange = 1, data = leaflet::getMapData(map)) addWebGLGeoJSONHeatmap(map, geojson, layerId = NULL, group = NULL, intensityProperty = NULL, size = "30000", units = "m", opacity = 1, gradientTexture = NULL, alphaRange = 1) addWebGLKMLHeatmap(map, kml, layerId = NULL, group = NULL, intensityProperty = NULL, size = "30000", units = "m", opacity = 1, gradientTexture = NULL, alphaRange = 1) addWebGLCSVHeatmap(map, csv, csvParserOptions, layerId = NULL, group = NULL, intensityProperty = NULL, size = "30000", units = "m", opacity = 1, gradientTexture = NULL, alphaRange = 1) addWebGLGPXHeatmap(map, gpx, layerId = NULL, group = NULL, intensityProperty = NULL, size = "30000", units = "m", opacity = 1, gradientTexture = NULL, alphaRange = 1) removeWebGLHeatmap(map, layerId) clearWebGLHeatmap(map)
map |
the map to add pulse Markers to. |
lng |
a numeric vector of longitudes, or a one-sided formula of the form
|
lat |
a vector of latitudes or a formula (similar to the |
intensity |
intensity of the heat. A vector of numeric values or a formula. |
layerId |
the layer id |
group |
the name of the group the newly created layers should belong to
(for |
size |
in meters or pixels |
units |
either 'm' or 'px' |
opacity |
for the canvas element |
gradientTexture |
Alternative colors for heatmap. allowed values are "skyline", "deep-sea" |
alphaRange |
adjust transparency by changing to value between 0 and 1 |
data |
the data object from which the argument values are derived; by
default, it is the |
geojson |
The geojson or topojson url or contents as string. |
intensityProperty |
The property to use for determining the intensity at a point. Can be a 'string' or a JS function, or NULL. |
kml |
The KML url or contents as string. |
csv |
The CSV url or contents as string. |
csvParserOptions |
options for parsing the CSV.
Use |
gpx |
The GPX url or contents as string. |