Package: mapSpain 1.2.0

mapSpain: Administrative Boundaries and Static Map Tiles for Spain

Administrative boundaries of Spain at several levels (Autonomous Communities and Cities, provinces, municipalities and 'NUTS'), based on 'GISCO' from 'Eurostat' <https://ec.europa.eu/eurostat/web/gisco> and 'CartoBase ANE' from 'Instituto Geográfico Nacional' <https://www.ign.es/>. Includes tools to download and process static map tiles and a 'leaflet' plugin for Spanish public administration tile providers.

Authors:Diego Hernangómez [aut, cre, cph], Eurostat [cph], Instituto Geográfico Nacional [cph], Francisco J. Goerlich [ctb]

mapSpain_1.2.0.tar.gz
mapSpain_1.2.0.zip(r-4.7)mapSpain_1.2.0.zip(r-4.6)mapSpain_1.2.0.zip(r-4.5)
mapSpain_1.2.0.tgz(r-4.6-any)mapSpain_1.2.0.tgz(r-4.5-any)
mapSpain_1.2.0.tar.gz(r-4.7-any)mapSpain_1.2.0.tar.gz(r-4.6-any)
mapSpain_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
mapSpain/json (API)

# Install 'mapSpain' in R:
install.packages('mapSpain', repos = c('https://dieghernan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ropenspain/mapspain/issues

Pkgdown/docs site:https://ropenspain.github.io

Datasets:

On CRAN:

Conda:

ropenspaintilesmapsspatialmunicipalitiesspaingiscoprovincesignautonomous-communitiesadministrative-boundariesstatic-tilesggplot2gisnutsccaaquarto

9.31 score 49 stars 1 packages 317 scripts 1.7k downloads 46 exports 67 dependencies

Last updated from:9e4004125b. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK201
source / vignettesOK298
linux-release-x86_64OK178
macos-release-arm64OK197
macos-oldrel-arm64OK156
windows-develOK176
windows-releaseOK140
windows-oldrelOK216
wasm-releaseOK154

Exports:addProviderEspTilesesp_check_accessesp_clear_cacheesp_detect_cache_diresp_dict_region_codeesp_dict_translateesp_get_attributionsesp_get_can_boxesp_get_can_provincesesp_get_capimunesp_get_ccaaesp_get_ccaa_sianeesp_get_comarcaesp_get_countries_sianeesp_get_countryesp_get_grid_BDNesp_get_grid_BDN_ccaaesp_get_grid_ccaaesp_get_grid_EEAesp_get_grid_ESDACesp_get_grid_MTNesp_get_grid_provesp_get_hex_ccaaesp_get_hex_provesp_get_hydrobasinesp_get_hypsobathesp_get_municesp_get_munic_sianeesp_get_nutsesp_get_provesp_get_prov_sianeesp_get_railwayesp_get_riversesp_get_roadsesp_get_simpl_ccaaesp_get_simpl_provesp_get_spainesp_get_spain_sianeesp_get_stationsesp_get_tilesesp_get_wetlandsesp_getTilesesp_make_provideresp_move_canesp_set_cache_diresp_siane_bulk_download

Dependencies:askpassbase64encbslibcachemclassclassIntclicountrycodecrosstalkcurlDBIdigeste1071evaluatefarverfastmapfontawesomefsgiscoRgluehighrhtmltoolshtmlwidgetshttr2jquerylibjsonliteKernSmoothknitrlabelinglatticelazyevalleafletleaflet.providerslifecyclemagrittrMASSmemoisemimeopensslpillarpkgconfigpngproxyR6rappdirsrasterRColorBrewerRcpprlangrmarkdowns2sassscalessfspsysterratibbletinytexunitsutf8vctrsviridisLitewithrwkxfunyaml

Get started
Introduction | Caching | Basic example | Choropleth and label maps | Thematic maps | mapSpain and giscoR | Working with static map tiles

Last update: 2026-06-17
Started: 2026-02-16

Static map tiles with mapSpain

Last update: 2026-06-12
Started: 2026-02-16

Readme and manuals

Help Manual

Help pageTopics
Add a tile layer from Spanish public administrations to a 'leaflet' mapaddProviderEspTiles
Clear your 'mapSpain' cache directoryesp_clear_cache
Spanish subdivision codes and namesesp_codelist
Convert and translate Spanish subdivision names and codesesp_dict_region_code esp_dict_translate
Canary Islands inset box and outlineesp_get_can_box esp_get_can_provinces
City where the municipal public authorities are based from SIANEesp_get_capimun
Autonomous Communities and Cities of Spain from GISCOesp_get_ccaa
Autonomous Communities and Cities of Spain from SIANEesp_get_ccaa_siane
Comarcas of Spainesp_get_comarca
Countries of the world from SIANEesp_get_countries_siane
National geographic grids from BDN (Nature Data Bank)esp_get_grid_BDN esp_get_grid_BDN_ccaa
National geographic grids from the European Soil Data Centre (ESDAC)esp_get_grid_ESDAC
National geographic grids from IGN MTN (Mapa Topografico Nacional)esp_get_grid_MTN
Get a 'sf' hexbin or squared 'POLYGON' of Spainesp_get_gridmap esp_get_grid_ccaa esp_get_grid_prov esp_get_hex_ccaa esp_get_hex_prov
River basin districts of Spain from SIANEesp_get_hydrobasin
Hypsometry and bathymetry of Spain from SIANEesp_get_hypsobath
Rivers and wetlands of Spain from SIANEesp_get_landwater esp_get_rivers esp_get_wetlands
Municipalities of Spain from GISCOesp_get_munic
Municipalities of Spain from SIANEesp_get_munic_siane
Territorial Spanish units for statistics (NUTS) datasetesp_get_nuts
Provinces of Spain from GISCOesp_get_prov
Provinces of Spain from SIANEesp_get_prov_siane
Railways of Spain from SIANEesp_get_railway esp_get_stations
Roads of Spain from SIANEesp_get_roads
Simplified map of provinces and Autonomous Communities and Cities of Spainesp_get_simpl esp_get_simpl_ccaa esp_get_simpl_prov
Boundaries of Spain from GISCOesp_get_country esp_get_spain
Boundaries of Spain from SIANEesp_get_spain_siane
Get static map tiles from public administrations of Spainesp_getTiles esp_get_attributions esp_get_tiles
Create a custom tile provideresp_make_provider
Displace a 'sf' object located in the Canary Islandsesp_move_can
NUTS 2024 for Spain 'sf' objectesp_nuts_2024
Set your 'mapSpain' cache directoryesp_detect_cache_dir esp_set_cache_dir
SIANE bulk downloadesp_siane_bulk_download
Public WMS and WMTS providers for Spainesp_tiles_providers
Population of Spain by municipality (2025)pobmun25