包裹传单 - 地图不显示 [英] Package leaflet - map doesn't show

查看:15
本文介绍了包裹传单 - 地图不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对与 Rstudio 一起使用的包传单"有一些疑问.

I got some question about the package "leaflet" which I'm using with Rstudio.

我的问题是,底图没有显示.但是在查看器的底部写着OpenStreeMap",并且还显示了放大和缩小的选项.

My problem is, that the basemap isn't shown. But at the bottom of the viewer is written "OpenStreeMap" and the options to zoom in and out are also shown.

有人知道这个问题吗?

library(leaflet)
m <- leaflet()
m <- addTiles(m)
m <- addMarkers(m, lng=174.768, lat=-36.852, popup="The birthplace of R")
m

这里显示了简单的示例:https://rstudio.github.io/leaflet/

The easy example is shown here: https://rstudio.github.io/leaflet/

推荐答案

我有一个解决方案:如果我在 RStudio 中单击在新窗口中显示",地图会在浏览器中打开,我可以看到它.

I have a solution: If I click in RStudio on "Show in new Window" the map opens in the browser and there I can see it.

也许地图只能在浏览器中使用?

Maybe the map only work in the browser?

这篇关于包裹传单 - 地图不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆