Wrapper for magick::image_ggplot() where all ... parameters are passed to
get_map_image().
Arguments
- ...
Arguments passed on to
get_map_imagelocationA
sf,sfc, orbboxobject (centroid point is used for location) or numeric vector in formatc(latitude, longitude). Defaults toNULL.queryString with query for location. query is ignored if a location is provided. Defaults to
NULL.imageryString with imagery type, Default: 'BirdsEye' Supported values include:
Aerial: Aerial imagery.
AerialWithLabels: Aerial imagery with a road overlay.
AerialWithLabelsOnDemand: Aerial imagery with on-demand road overlay.
Streetside: Street-level imagery.
BirdsEye: Birds Eye (oblique-angle) imagery.
BirdsEyeWithLabels: Birds Eye (oblique-angle) imagery with a road overlay.
Road: Roads without additional imagery.
CanvasDark: A dark version of the road maps.
CanvasLight: A lighter version of the road maps which also has some of the details such as hill shading disabled.
CanvasGray: A grayscale version of the road maps
width,height,mapsizeWidth and height in pixels or use mapsize to provide a vector of c(width, height). If mapsize is provided, width and height are ignored. Default: 600px width, 400px height, mapsize is
NULL.zoomNumeric vector between 0 and 20 for imagery other than Bird's Eye maps or 18 to 22 for Bird's Eye maps. Default: 18
orientationOrientation as a character string ("N", "E", "S", "W") or length 1 numeric vector (0,90,180,270). Other numeric orientations (from -360 to 720) are matched to the closest value, e.g. 35 to 0 or 75 to 90. Default: 0
nudgeNumeric vector in the format,
c(meters to shift latitude, meters to shift longitude), e.g.c(100, 0)to shift center 100 meters in latitude. Defaults toNULL.keyBing Maps API Key, Default:
Sys.getenv("BING_MAPS_API_KEY")checkIf
TRUE, check the map metadata which returns an error if the image is unavailable. DefaultFALSE.stripdrop image comments and metadata
- interpolate
passed to ggplot2::annotation_raster