We ran into our first instance where the basemap for a country needed reduction, as the scale did not look good. This was for the USA where by default the contiguous USA and Alaska are plotted. We now have the functionality to check if spatial data falls within Alaska and if not, Alaska is dropped from the base map.
This will be useful for other countries where we drop distant territories or islands from their base spatial data. They are currently just dropped permanently in update_adm0_sf.R. If we ever need to use those territories, we can add them back to the basemap and then handle those territories geom_adm0.R instead.
We ran into our first instance where the basemap for a country needed reduction, as the scale did not look good. This was for the USA where by default the contiguous USA and Alaska are plotted. We now have the functionality to check if spatial data falls within Alaska and if not, Alaska is dropped from the base map.
This will be useful for other countries where we drop distant territories or islands from their base spatial data. They are currently just dropped permanently in
update_adm0_sf.R
. If we ever need to use those territories, we can add them back to the basemap and then handle those territoriesgeom_adm0.R
instead.