Skip to content

An extension to Leaflet that contains configurations for various free WMS (Web Map Service) and WMTS (Web Map Tile Service) providers of Spain (IDErioja, PNOA, IGN base, Catastro, etc), from Spanish mapping agencies.

License

Notifications You must be signed in to change notification settings

dieghernan/leaflet-providersESP

Repository files navigation

GitHub release (latest SemVer) CodeQL jsDelivr hits (GitHub) DOI ko-fi

leaflet-providersESP

An extension to Leaflet that contains configurations for various free WMS/WMTS tile providers of Spain.

Compatible with leaflet-providers

Instalation

Via CDN

<!-- Latest -->
<script src="https://cdn.jsdelivr.net/gh/dieghernan/leaflet-providersESP/dist/leaflet-providersESP.min.js"></script>

<!-- By version -->
<script src="https://cdn.jsdelivr.net/gh/dieghernan/[email protected]/dist/leaflet-providersESP.min.js"></script>

Local

Get leaflet-providersESP.js:

<!-- Last version -->
<script src="./path/to/your/folder/leaflet-providersESP.js"></script>

Usage

<body>
    <div id="mapid"></div>
    <script src="https://cdn.jsdelivr.net/gh/dieghernan/leaflet-providersESP/dist/leaflet-providersESP.min.js"></script>
    <script>
    var mymap = L.map('mapid').setView([40.4166, -3.7038400], 18);
      L.tileLayer.providerESP('IDErioja').addTo(mymap);
    </script>
</body>

example

Full demo and providers (ES).

About

An extension to Leaflet that contains configurations for various free WMS (Web Map Service) and WMTS (Web Map Tile Service) providers of Spain (IDErioja, PNOA, IGN base, Catastro, etc), from Spanish mapping agencies.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •