plot3d

leaflet map: remove road layer

寵の児 提交于 2021-01-01 04:56:07
问题 I want to remove roads from my leaflet map in R. Is there a way to remove layers we want such as roads, lakes, state boundaries, etc.? Sample code: 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

leaflet map: remove road layer

邮差的信 提交于 2021-01-01 04:52:53
问题 I want to remove roads from my leaflet map in R. Is there a way to remove layers we want such as roads, lakes, state boundaries, etc.? Sample code: 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