map3d: Plot a map object in 3D.

Description Usage Arguments Author(s) See Also Examples

Description

This method creates a 3D plot of an OpenStreetMap map object using rgl.

Usage

1
2
  map3d.OpenStreetMap(map, axes = TRUE, col_axes = "white",
    col_bg = "black", lit = FALSE, open3d = TRUE, ...)

Arguments

map

map object from the OpenStreetMap package.

axes

logical, specifying if axes are drawn or not.

col_axes

color of the axes.

col_bg

background color.

lit

logical, specifying if lighting calculation should take place on geometry.

open3d

ignore, only needed for snapshot creation for the vignette.

...

passes arguments to surface3d.

Author(s)

Nikolai Gorte <n.gorte@gmail.com>

See Also

openmap, rgl

Examples

1
2
3
4
map <- openmap(c(52.05, 7.5), c(51.9, 7.75),12, type="osm")
# Reproject if you want. Takes some time!
map <- openproj(map, CRS("+init=EPSG:4326"))
map3d(map)

ngort01/map3d documentation built on May 23, 2019, 4:43 p.m.