2017-03-09 41 views
0

我已經與葉包的傳單在R.下面的代碼的簡化版本中使用製作單張地圖移動響應

庫(單張)

# dumb data 
Points <- data.frame(lon = c(41.889, 41.882, 41.891), lat = c(12.455, 12.446, 12.459)) 

# web map 
wland <- 
    leaflet(data = Points) %>% 
    addTiles() %>% 
    addCircleMarkers(col = "red", 
        fillOpacity = 1, 
        radius = 5, 
        stroke = TRUE, 
        clusterOptions = markerClusterOptions(
        maxClusterRadius=35, disableClusteringAtZoom=14 
        )) 

saveWidget(wland, "To:/Your/Path/map.html", selfcontained = FALSE) 

我上傳的HTML與JavaScript的所有沿here。它在桌面上看起來不錯,但在移動設備上它不能很好地響應:標記仍然太小,等等。 您是否知道如何使傳單移動設備響應?我應該修改R-leaflet創建的JavaScript中的sometihng嗎?

感謝, 雅格布

回答