Examples of map layers

This document will be incomplete if rgdal is unavailable or there is on internet connection when this document is compiled. The full document is at diseasemapping.r-forge.r-project.org.

See mc.bbbike.org/mc for examples more map tiles (not all of which are compatible with mapmisc).

The following are some examples of maps produced with mymap=openmap(x, path="something")

osm

plot(openmap(x,path="osm"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

osm-no-labels

plot(openmap(x,path="osm-no-labels"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

osm-de

plot(openmap(x,path="osm-de"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

bw-mapnik

plot(openmap(x,path="bw-mapnik"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

osm-seamap

plotRGB(openmap(x,path="osm-seamap"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

osm-fr

plot(openmap(x,path="osm-fr"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

hyda

plot(openmap(x,path="hyda"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

hyda-base

plot(openmap(x,path="hyda-base"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

hyda-roads

plot(openmap(x,path="hyda-roads"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

humanitarian

plot(openmap(x,path="humanitarian"))

© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography by Humanitarian OSM team is licensed as CC BY-SA.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

cartodb

plot(openmap(x,path="cartodb"))

Map tiles by CartoDB under CC BY 3.0. Data by OpenStreetMap, available under the Open Database License

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

cartodb-dark

plot(openmap(x,path="cartodb-dark"))

Map tiles by CartoDB under CC BY 3.0. Data by OpenStreetMap, available under the Open Database License

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

sputnik

plot(openmap(x,path="sputnik"))

corp.sputnik.ru/maps.

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

stamen-toner

plotRGB(openmap(x,path="stamen-toner"))

Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the Open Database License

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

stamen-watercolor

plotRGB(openmap(x,path="stamen-watercolor"))

Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

stamen-terrain

plot(openmap(x,path="stamen-terrain"))

Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

stamen-terrain-labels

plotRGB(openmap(x,path="stamen-terrain-labels"))

Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

stamen-terrain-background

plot(openmap(x,path="stamen-terrain-background"))

Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA

plot of chunk someTiles plot of chunk someTiles plot of chunk someTiles

Additional map layers

See mc.bbbike.org/mc

Michelin

mPath = osmTiles(paste(
  'http://map3.viamichelin.com/map/mapdirect?map=',
  c('light','viamichelin'), '&', sep=''),
  xyz='zxy=', suffix = 
    '&format=png&version=201503191157&layer=background')

africaMichelin = openmap(
  africaExtent, path=mPath,
  zoom=2,
  verbose=TRUE, 
  crs = crsMerc)


for(D in names(africaMichelin)) {
  map.new(africaMichelin)
  plot(africaMichelin[[D]], add=TRUE)
  mtext(D, side=3, line=-2, outer=FALSE)
}

Stamen retina

sPath = osmTiles('stamen-toner', 
  suffix = '@2x.png')

africaS = openmap(
  africaTiles, 
  buffer=-1,
  zoom=attributes(africaTiles)$tiles$zoom+1,
  path=sPath, verbose=TRUE)
africaS2 = tonerToTrans(africaS)

map.new(africaTiles)
plot(africaTiles[['opentopomap']], add=TRUE)
plot(africaS2, add=TRUE)

mtext(sPath, side=3, line=-2, outer=FALSE)

Komoot, Yandex, ESRI, F4map, and Sigma

otherPaths = c(
  'https://a.tile.hosted.thunderforest.com/komoot-2/',
  'https://sat01.maps.yandex.net/tiles?l=sat&v=1.35.0&',
  'https://vec02.maps.yandex.net/tiles?l=map&v=4.40&',
  'https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/',
  'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/',
  'https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/',
  'https://tile2.f4map.com/tiles/f4_2d/',
  'http://tiles1.sigma-dc-control.com/layer8/')

africaExtra = openmap(
  africaExtent, path=otherPaths,
  zoom=2,
  verbose=TRUE, 
  crs = crsMerc)

Spaths = unique(
  gsub("(red|green|blue|trans)$", "",
    names(africaExtra), ignore.case=TRUE)
)

for(D in Spaths) {

  oneTileName = grep(paste("^", D, "$", sep=""), 
    names(africaExtra), value=TRUE)

  threeTilesName = grep(paste("^", D, 
      "([rR]ed|[gG]reen|[bB]lue)$", sep=""), 
    names(africaExtra),value=TRUE)

  map.new(africaExtra)
  if(length(threeTilesName)==3) {
    plotRGB(africaExtra[[threeTilesName]], add=TRUE)
  } else {
    plot(africaExtra[[oneTileName]], add=TRUE)
  }
  mtext(D, side=3, line=-2, outer=FALSE)
}