Skip to content

Releases: 16EAGLE/basemaps

0.0.7

23 Apr 07:25
Compare
Choose a tag to compare

basemaps 0.0.7

Minor improvements

Changes:

  • maps rendered using 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).
  • switched from using aes_string to aes in gg_raster due to deprectation of the function in ggplot2.

0.0.6

03 Mar 20:05
Compare
Choose a tag to compare

basemaps 0.0.6

Major improvements, adding new map services

Bugs:

  • Fixing an issue with maps appearing blurred/of low resolution when using basemap_ggplot or basemap_gglayer. Maps should now show up with consistent resolutions across plot/viewing methods.
  • Fixing a bug from upstream causing maps to not get mosaiced correctly
  • Fixing grDevices display bug when NAs are in map imagery

Changes:

  • gg_raster now accepts interpolate, a logical argument to control smoothing of the plotted raster.
  • added Stadia Maps support for osm_stamen maps: Due to changes by Stamen, you now need a map token from https://stadiamaps.com (free registration) for Stamen maps.
  • added Stadia Maps as new map service osm_stadia (requires map token from https://stadiamaps.com)

0.0.5

26 Sep 18:49
Compare
Choose a tag to compare

basemaps 0.0.5

Added gg_raster and basemap_terra

Features:

  • added basemap_terra to output maps as class SpatRaster from package terra
  • added gg_raster, a function that plots objects of class RasterLayer, RasterBrick or {RasterStack as ggplot2

Changes:

  • included terra as Imports dependency
  • replaced internal calls to raster functions with equivalent functions of its successor terra
  • moved raster from Imports to Suggests, as it has been internally replaced by its successor terra
  • moved stars from Imports to Suggests
  • changed default value of argument class to basemap() to plot for being more user-friendly to users not familiar with spatial classes

0.0.4

17 Sep 09:56
Compare
Choose a tag to compare

basemaps 0.0.4

Updated help, bug fixes.

Bugs:

  • dropped defunct/not maintained tile servers (OSM) from map services list
  • fixing a bug ("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
  • added a handling to fix a plotting bug for cases in which maps returned by tile servers (for whatever reasons) consist of only a single value (e.g. 0) for the given query extent (#9)
  • fixed a bug placing cached maps in the wrong directory when map_dir is defined by the user (#11)
  • cached maps stored in other directories than the currently set map_dir are now disregarded to avoid path errors when switching map directories during a session (#11)

Features:

  • added 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.