Skip to content

Instantly share code, notes, and snippets.

@ateucher
Created September 14, 2017 00:04
Show Gist options
  • Save ateucher/297a0ddc2c78306a518c4fe2063d4f11 to your computer and use it in GitHub Desktop.
Save ateucher/297a0ddc2c78306a518c4fe2063d4f11 to your computer and use it in GitHub Desktop.
BC WMS in R Leaflet
library(leaflet)
leaflet() %>% addTiles() %>%
setView(-127, 52, 6) %>%
addWMSTiles("https://openmaps.gov.bc.ca/geo/pub/WHSE_FOREST_VEGETATION.BEC_BIOGEOCLIMATIC_ZONE_2M_SPG/ows",
layers = "pub:WHSE_FOREST_VEGETATION.BEC_BIOGEOCLIMATIC_ZONE_2M_SPG",
options = WMSTileOptions(
format = "image/png",
transparent=TRUE,
styles = "BEC_Cartographic_Zones_2M_Colour_Themed"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment