1
我想從我的小冊子地圖中刪除道路。有沒有辦法去除我們想要的圖層,如道路,湖泊,州界線等?小冊子地圖:刪除道路圖層
示例代碼:
library(leaflet)
library(plot3D)
top = 45 # north lat
left = -110 # west long
right = -90 # east long
bottom = 32 # south lat
longitudes= seq(left,right, length.out = 3)
latitude=seq(bottom,top,length.out = 5)
latlons_mesh=mesh(longitudes,latitude)
longitude=as.vector(latlons_mesh$x)
latitude=as.vector(latlons_mesh$y)
mydata=data.frame(longitude=longitude,
latitude=latitude)
leaflet(mydata)%>%fitBounds(right,bottom,left,top)%>%
addTiles()%>%
addMarkers()