传单R根据不同图层更改形状颜色

时间:2018-06-22 18:51:36

标签: r leaflet

我正在使用圆形绘制多层底图。 我将CartoDB.DarkMatter底图与David Rumsey历史地图集中的地图结合在一起。

我用圆圈显示数据,颜色和透明度属性在DarkMatter底图上看起来不错,但在历史地图上却没有。 (太清晰了)

如何根据图层调整圆形颜色? (例如:#3182bd(用于历史底图);#3182bd(用于DarkMatter底图)

leaflet() %>%
          addCircles(lng = 0.0, lat = 0.0, radius = 10^6, color = "#6baed6",    weight = 3) %>%
          addProviderTiles(providers$CartoDB.DarkMatterNoLabels, group = "DarkMatter") %>%
          addTiles("https://maps.georeferencer.com/georeferences/673422615974/2017-12-29T21:36:14.564535Z/map/{z}/{x}/{y}.png?key=D7AwmpRP1H6pUic6DIK3",
                   group ="Wassende-Grade-Kaart van de Aetiopische Ocean, van Keulen, Joannes, 1680") %>%
          addTiles("https://maps.georeferencer.com/georeferences/190155356360/2017-12-30T15:04:20.007647Z/map/{z}/{x}/{y}.png?key=D7AwmpRP1H6pUic6DIK3",
                   group ="La Guinee et Pays circomvoisins, Sanson, Nicolas, 1656") %>%
          addLayersControl(
            baseGroups = c("DarkMatter", "Wassende-Grade-Kaart van de Aetiopische Ocean, van Keulen, Joannes, 1680", "La Guinee et Pays circomvoisins, Sanson, Nicolas, 1656"), position ="topleft")

0 个答案:

没有答案