i have setup ncwms server serve netcdf file web map server. integrate ncwms serve shiny app through r leaflet package:
there no problem show example code, empty leaflet results.
my codes :
library(leaflet)
leaflet() %>% addtiles() %>% setview(133, -23, zoom = 4) %>% addwmstiles( "https://croptsrv-cdc.it.csiro.au/ncwms/wms", layers = "fi/mint", options = wmstileoptions( format = "image/png", transparent = false, version = "1.3.0", crs = 'crs:84', styles = 'boxfill/redblue'), attribution = "" )
this link capabilities of ncwms dataset:
i have played url , options, still no maps.
how should show ncwms map using leaflet? suggestions.
don't specify crs in wmstileoptions - works me:
leaflet() %>% addtiles() %>% setview(133, -23, zoom = 4) %>% addwmstiles("https://croptsrv-cdc.it.csiro.au/ncwms/wms", layers = "fi/mint", options = wmstileoptions( format = "image/png", transparent=true, styles="boxfill/redblue"))
Comments
Post a Comment