Add a Cloud Optimized GeoTIFF layer
Usage
add_cog(
map,
url,
name = "COG",
bands = NULL,
colormap = NULL,
rescale = NULL,
style = list(),
visible = TRUE,
opacity = 1,
...
)Arguments
- map
A GeoLibre widget.
- url
Public HTTP(S) URL of a Cloud Optimized GeoTIFF or GeoTIFF.
- name
Layer name.
- bands
Optional one-based band indices. Three or more bands render as RGB; one renders as a single band, which
colormapthen colors.- colormap
Optional GeoLibre colormap name for single-band rendering.
- rescale
Optional list of numeric
c(min, max)ranges, one per rendered band. A singlec(min, max)pair is accepted for the one-band case.- style
Named list of GeoLibre style overrides such as
fillColor,strokeColor, andstrokeWidth.- visible
Whether the layer is initially visible.
- opacity
Layer opacity from zero to one.
- ...
Additional style overrides given as named arguments, merged into
style.add_geojson(map, data, fillColor = "red")andadd_geojson(map, data, style = list(fillColor = "red"))are equivalent.