Make an interactive map with basemap
filename of Cloud-Optimized GeoTIFF (COG)
directory of path to COG; defaults to "https://storage.googleapis.com/offhab_lyrs"
range of values to colorramp in COG; default: c(1, 100)
method for interpolation between zoom levels; choose "nearest" for categorical; default: "average" (for continuous)
color ramp that applies to the colormap_name
of
https://api.cogeo.xyz/cog/tiles;
default: "spectral_r"
color ramp that applies to both leaflet::colorNumeric()
default: "Spectral"
boolean whether lgnd_palette
is reversed in
leaflet::colorNumeric()
color ramp
default: True
bounding box to feed leaflet::fitBounds()
defaults to US48:
c(-129.4, 23.2, -64.7, 48.9)
title for legend; default: "% Habitat"
the opacity of the COG tile layer; default is 0.9
the opacity of the basemap; default is 0.5
a leaflet::leaflet()
map
# map by aphia_id
oh_map_cog("aphia_100599_web.tif")