【发布时间】:2017-04-12 01:12:06
【问题描述】:
我有以下代码
myicon <- makeIcon( iconUrl = "myicon.ico" )
html_legend <- "<img src='myicon.ico'>hey<br/>"
map_leaflet <- leaflet() %>%
addTiles() %>%
addMarkers(50, 50, icon = myicon, popup = paste("geo")) %>%
addControl(html = html_legend, position = "bottomright")
地图是对的,地图上的图标不错,弹窗也不错。
在addControl() 中,我想将图标显示为图例。它显示“问号错误图标”而不是实际图像。另一方面,“嘿”这个词确实出现了。
提前感谢您的帮助。我不明白缺少什么。
【问题讨论】: