Description Usage Arguments Value Examples
View source: R/hls_site_interactive.R
Plots interactive map for available sites for HLS data
1 | hls_site_interactive(long = 89.5, lat = 22)
|
long |
Provide longitude in numbers |
lat |
Provide latitude in numbers |
Interactive map using leaflet
1 2 3 4 5 6 7 8 9 10 11 | # Without any argument will plot static map
# For the first time, the function will try to download
# shapefiles from https://hls.gsfc.nasa.gov/
# Next, it will plot static map using ggplot2 library
hls_sites()
# For interactive map using leaflet package
hls_sites(static= FALSE)
# For zooming to point of interest use
hls_site_interactive(long = 89.50,lat = 22) #interactive
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.