Giter VIP home page Giter VIP logo

dieghernan / leaflet-providersesp Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 2.07 MB

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.

Home Page: https://dieghernan.github.io/leaflet-providersESP/

License: MIT License

JavaScript 100.00%
leaflet wmts-tile-providers spain leaflet-providersesp wms-service plugin

leaflet-providersesp's Introduction

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/[email protected]/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).

leaflet-providersesp's People

Contributors

dependabot[bot] avatar dieghernan avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

leaflet-providersesp's Issues

Add maps from Institut Cartogràfic i Geològic de Catalunya (ICGC)

Hi, In Catalonia we have the Institut Cartogràfic i Geològic de Catalunya (ICGC) that has many awesome maps!

I leave some sources and examples I found:

Feel free to add more maps, I just wanted to let you know they exist :D

BTW: In this android app Cartografía de España you can find many maps from Spain, and it uses a leaflet map, so we could probably get all the layers if we find the source code. This is their website: https://www.geamap.com/es/espana

More WMS?

Hi @dieghernan
Thanks for this plugin.
I've used this extension to add base maps directly in leaflet, but also I would like to use as base maps in R, using the amazing mapSpain pkg. I read the documentation and I see how to do it, but I didn't find any way to include custom WMS, for instance from other institutions (e.g. from Junta de Andalucía).

Any suggestions?

Thanks and sorry for this mixed questions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.