Created
September 21, 2016 17:08
-
-
Save tim-salabim/9d132266609f49ae13688595eab04d21 to your computer and use it in GitHub Desktop.
compare maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(leaflet) | |
library(mapview) | |
spatial_merge <- gadmCHE | |
m1 <- leaflet() %>% | |
addTiles() %>% | |
addPolygons(data = spatial_merge, | |
layerId = spatial_merge@data$OBJECTID, | |
stroke= TRUE, fillOpacity = 0.5, smoothFactor = 0.5, weight=1, | |
color = "grey", opacity = 1, | |
popup=paste(sep= "<br/>", | |
"<b>FeatureID: </b>", row.names(spatial_merge))) | |
m2 <- mapview(gadmCHE) | |
sync(m1, m2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment