有什么方法可以从MapServer获取数据(像素值)。我需要分析噪声污染层上的数据,但对此了解甚少。
我使用以下代码下载了地图。
感谢您的帮助。
library(leaflet.esri)
popupFunc <- htmlwidgets::JS(
"function (error, featureCollection) {
if (error || featureCollection.features.length === 0) {
return false;
} else {
return \"Risk Level: \" + featureCollection.features[0].properties.CLASS_DESC;
}
}")
leaflet() %>% setView(-96.8, 38.5, 4) %>%
addEsriBasemapLayer(esriBasemapLayers$Gray, autoLabels = TRUE) %>%
addEsriDynamicMapLayer(
url = paste0("https://maps.bts.dot.gov/services/rest/services/Noise/CONUS_road_and_aviation_noise/MapServer/"),
options = dynamicMapLayerOptions(useCors = FALSE))