Over the years, the package has been through a couple of services to provide base maps and is currently stitching together its own base maps using tiles from Stamenmaps.
The recently released slippymath package should make this much easier:
The current list of PWFSLSmoke functions with "map" in the name include:
esriMap_getMap.R -- DEFUNCT
esriMap_plotOnStaticMap.R -- DEFUNCT
monitor_map.R -- uses base R maps package for state/county lines
monitor_stamenmap.R -- plots monitoring data on top of a Stamenmap basemap
monitor_esriMap.R -- DEFUNCT
monitor_performanceMap.R -- uses base R maps package for state/county lines
staticmap_getStamenmapBrick.R -- assembles a rasterBrick using Stamenmap tiles
staticmap_plotRasterBrick.R -- plots a rasterBrick basemap
In moving to Stamenmap, I think I got the naming right. We are working with a "staticmap" thingy and we need to either get it or plot it. But we could perhaps call the functions staticmap_getTiledImage() and staticmap_plotTiledImage() which seems more obvious. (I do like explicit naming!)
So the full task for this issue is:
[x] create staticmap_getTiledImage() using slippymath functionality.
[x] create nice roxygen2 documentation
[x] create staticmap_plotTiledImage() much the same as staticmap_plotRasterBrick()
[x] grep through the entire codebase looking for places where we need to convert names. (It's probably safe to use SublimeText to do it wholesale throughout the codebase and then go back and restore things in the original staticmap_ functions.)
[x] Check the package and deal with any problems that arise.
[ ] Use local_OLD/esriMap.Rmd as inspiration for a new vignette called perhaps "Using Basemaps"
Over the years, the package has been through a couple of services to provide base maps and is currently stitching together its own base maps using tiles from Stamenmaps.
The recently released slippymath package should make this much easier:
https://github.com/MilesMcBain/slippymath
The current list of PWFSLSmoke functions with "map" in the name include:
In moving to Stamenmap, I think I got the naming right. We are working with a "staticmap" thingy and we need to either
get
it orplot
it. But we could perhaps call the functionsstaticmap_getTiledImage()
andstaticmap_plotTiledImage()
which seems more obvious. (I do like explicit naming!)So the full task for this issue is:
staticmap_getTiledImage()
using slippymath functionality.staticmap_plotTiledImage()
much the same asstaticmap_plotRasterBrick()
staticmap_
functions.)local_OLD/esriMap.Rmd
as inspiration for a new vignette called perhaps "Using Basemaps"pkgdown::build_site()