View source: R/retrieve_layer_properties.R
get_layer_legend | R Documentation |
Raster layers are accompanied with legends to identify what the colors mean. This function retrieves those legend values and returns them as a data.frame with the associated RGB color values. This will likely be most useful for plotting and analysis of map layers.
get_layer_legend(url)
url |
A URL to a Map or Image Service layer |
A data.frame with two columns (color, values) and the number of rows equal to the number of values in a layer
## Not run:
get_layer_legend(wi_landcover_url)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.