套餐宣传单-地图未显示 [英] Package leaflet - map doesn't show

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

问题描述

我对与Rstudio一起使用的软件包"leaflet"有疑问.

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天全站免登陆