Minor improvements
Changes:
basemap_ggplot
or basemap_gglayer
or objects plotted using gg_raster
are now displayed with all pixels by default (full resolution, maxpixels
argument) instead of rendering in a lower resolution (previous default: 500000
).aes_string
to aes
in gg_raster
due to deprectation of the function in ggplot2
.Major improvements, adding new map services
Bugs:
basemap_ggplot
or basemap_gglayer
. Maps should now show up with consistent resolutions across plot/viewing methods.grDevices
display bug when NA
s are in map imageryChanges:
gg_raster
now accepts interpolate
, a logical argument to control smoothing of the plotted raster.osm_stamen
maps: Due to changes by Stamen, you now need a map token from https://stadiamaps.com (free registration) for Stamen maps.osm_stadia
(requires map token from https://stadiamaps.com)Added gg_raster
and basemap_terra
Features:
basemap_terra
to output maps as class SpatRaster
from package terra
gg_raster
, a function that plots objects of class RasterLayer
, RasterBrick
or {RasterStack
as ggplot2
Changes:
terra
as Imports dependencyraster
functions with equivalent functions of its successor terra
raster
from Imports to Suggests, as it has been internally replaced by its successor terra
stars
from Imports to Suggestsclass
to basemap()
to plot
for being more user-friendly to users not familiar with spatial classesUpdated help, bug fixes.
Bugs:
"dimensions of e1 and e2 do not match"
) when trying to build a map from map_service="mapbox"
and map_type="terrain"
with newer versions of stars
map_dir
is defined by the user (#11)map_dir
are now disregarded to avoid path errors when switching map directories during a session (#11)Features:
flush_cache
, a function that flushes the cache and thereby removes all previously queried and/or composited products from the map directories (temporary or user-defined using the argument map_dir
) used during the current session.Minor improvements.
Features:
Bug fixes.
Fixed bugs:
stars
(>= 0.5.0) to make sure that st_set_bbox
is exported (see issue #3)Initial release.
New functions:
get_maptypes()
returns every supported map service and map type that can be used as input to the map_service
and map_type
arguments of set_defaults()
, basemap()
or associated functions.draw_ext()
lets you draw an extent on an interactive map.set_defaults()
, get_defaults()
and reset_defaults()
set, get or reset the defaults of all map arguments passed to basemap()
or associated functions.basemap()
and its aliases basemap_raster()
, basemap_stars()
, basemap_mapview()
, basemap_plot()
, basemap_ggplot()
, basemap_gglayer()
, basemap_magick()
, basemap_png()
and basemap_geotif()
(down)load and cache a basemap of a defined extent ext
, map_service
and map_type
and return it as an object of the defined class.New features:
This document should provide a broad overview on changes that are applied to the basemaps R package. There is no warranty for completeness, since minor changes might not be included. All improvement and feature descriptions are bundled per release version. The document is currently maintained by Jakob Schwalb-Willmann.