bottomright: Retrieve bottomright of 'sp' object

Description Usage Arguments Examples

Description

For use with the (annoying) openmap() functions which retrieve basemap tiles for a box specified by the topleft and bottom right vertices.

Usage

1

Arguments

geom

Input geometry (polygon)

Examples

1
2
3
4
5
6
7
shade = gBoundingPoly(cambridge_town, tol = 1.1)
basemap = openmap(topleft(shade), bottomright(shade), type = "skobbler")

plot(basemap)
# skobbler maps look better with a little purple haze
plot(spTransform(shade, osm()), add = T, col = col2hex("lavender", "40"), border = NA)
plot(spTransform(cambridge_town, osm()), add = T, col = col2hex("skyblue", "80"))

townleym/mSpatial documentation built on May 31, 2019, 6:46 p.m.