[英]Leaflet Map in R as a Globe
Hi I have a question about Leaflet library in R. Map in Leaflet is as very long horizontal paper with repeated view of world.嗨,我有一个关于 R 中的 Leaflet 库的问题。Leaflet 中的 Map 是一篇非常长的横向论文,具有重复的世界观。 The problem is, that when I mark something near Australia, It have marked it only in one place although we can see on map (screen below) Australia 3 times.
问题是,当我在澳大利亚附近标记某物时,它只在一个地方标记了它,尽管我们可以在 map(下图)澳大利亚看到 3 次。 It is possible to make this map repeated and when I will mark for example Poland on map, Poland will be marked everywhere it appears?
有可能使这个 map 重复,当我在 map 上标记例如波兰时,波兰会在它出现的所有地方被标记吗?
Code Below (example from library webpage):下面的代码(来自图书馆网页的示例):
leaflet() %>% addTiles() %>%
addMarkers(data=quakes, clusterOptions = markerClusterOptions(), clusterId = "quakesCluster") %>%
addEasyButton(
easyButton(
states = list(
easyButtonState(
stateName="unfrozen-markers",
icon="ion-toggle",
title="Freeze Clusters",
onClick = JS("
function(btn, map) {
var clusterManager =
map.layerManager.getLayer('cluster', 'quakesCluster');
clusterManager.freezeAtZoom();
btn.state('frozen-markers');
}")
),
easyButtonState(
stateName="frozen-markers",
icon="ion-toggle-filled",
title="UnFreeze Clusters",
onClick = JS("
function(btn, map) {
var clusterManager =
map.layerManager.getLayer('cluster', 'quakesCluster');
clusterManager.unfreeze();
btn.state('unfrozen-markers');
}")
)
)
)
)
This exists, but I can't help with how to integrate it with R.这存在,但我无法帮助如何将它与 R 集成。
https://www.maptiler.com/news/2014/07/webgl-earth-2-leaflet-compatible/ https://www.maptiler.com/news/2014/07/webgl-earth-2-leaflet-compatible/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.