
Last chance! 50% off unlimited learning
Sale ends in
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)
the map to add pulse Markers to.
a numeric vector of longitudes, or a one-sided formula of the form
~x
where x
is a variable in data
; by default (if not
explicitly provided), it will be automatically inferred from data
by
looking for a column named lng
, long
, or longitude
(case-insensitively)
a vector of latitudes or a formula (similar to the lng
argument; the names lat
and latitude
are used when guessing
the latitude column from data
)
intensity of the heat. A vector of numeric values or a formula.
the layer id
the name of the group the newly created layers should belong to
(for clearGroup
and addLayersControl
purposes).
Human-friendly group names are permitted--they need not be short,
identifier-style names. Any number of layers and even different types of
layers (e.g. markers and polygons) can share the same group name.
in meters or pixels
either 'm' or 'px'
for the canvas element
Alternative colors for heatmap. allowed values are "skyline", "deep-sea"
adjust transparency by changing to value between 0 and 1
the data object from which the argument values are derived; by
default, it is the data
object provided to leaflet()
initially, but can be overridden
The geojson or topojson url or contents as string.
The property to use for determining the intensity at a point. Can be a 'string' or a JS function, or NULL.
The KML url or contents as string.
The CSV url or contents as string.
options for parsing the CSV.
Use csvParserOptions
() to supply csv parser options.
The GPX url or contents as string.