r - 为什么 USGS 提供商切片和 WMS 图层在 Leaflet 中显示为空白?
问题描述
我正在尝试将USGS.USopo 提供方图块添加到 R 中的传单地图中,但每次尝试都只提供一张空白地图。WMS 瓦片源可以在这里找到。以下所有内容都会产生空地图。
library(leaflet)
map <- leaflet(options = leafletOptions(attributionControl=FALSE)) %>%
addProviderTiles(providers$Esri.WorldTopoMap)
map
library(leaflet)
map <- leaflet(options = leafletOptions(attributionControl=FALSE)) %>%
addWMSTiles("https://index.nationalmap.gov/arcgis/services/3DEPElevationIndex/MapServer/WMSServer?request=GetCapabilities&service=WMS", layers ="Layers")
map
library(leaflet)
map <- leaflet(options = leafletOptions(attributionControl=FALSE)) %>%
addTiles("http://{s}.basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}.png")
map
解决方案
推荐阅读
- c# - 如何授权 Ajax 请求并验证 JWT 令牌是否有效 ASP.NET
- printing - 如何打印(物理打印机)存储在 blob(表)中的 PDF 文件
- android - Android 片段测试错误:Manifest 主要属性的签名文件摘要无效
- python - 如何使用 python 从网页中读取值?
- c - RockPaperScissor 游戏没有得到预期的结果 - C 编程
- python - 从标记之间的长字符串中提取子集字符串
- javascript - 我如何让这个按钮粘在屏幕上
- python - django 从 post 方法传递上下文数据
- tensorflow - 如何在 Tensorflow Keras 中实现多个 CRF 输出?
- github - 从 Azure Pipeline 创建 GitHub PR 评论