Archivo JavaScript con una recopilación de servicios de visualización de mapas (WMS) para España para ser visualizados en Leaflet.
JavaScript file with a compilation of some Web Map Services (WMS) for Spain to be used in Leaflet.
##Opciones de instalación / Install Options
- Clonar/Clone..
https://github.com/sigdeletras/Leaflet.Spain.WMS.git
- Incluir
Leaflet.Spain.WMS.js
dentro de la etiqueta<head>
. IncludeLeaflet.Spain.WMS.js
inside the<head>
tag.
##¿Cómo usar Leaflet.Spain.WMS.js? / How to use Leaflet.Spain.WMS.js?
Incluir las fuentes de Leaflet y Leaflet.Spain.WMS.js
dentro de la etiqueta <head>
del documento HTML.
Include the Leaflet Source and Leaflet.Spain.WMS.js
inside the <head>
tag of the HTML document.
<!doctype HTML>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css">
</head>
<body>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="https://sigdeletras.github.io/Leaflet.Spain.WMS/src/Leaflet.Spain.WMS.js"></script>
<script>
// Start creating maps
</script>
</body>
</html>
##Uso/Usage
//add PNOA Layer to map.
Spain_PNOA_Mosaico.addTo(map);
##Ejemplo/Example
var map = L.map('map', {
zoomControl:true,
maxZoom:20,
layers:[Spain_UnidadAdministrativa,Spain_PNOA_Ortoimagen]
}).fitBounds([[24.9300000311,-19.6],[46.0700000311,5.6]]);
var baselayers = {
"PNOA Mosaico": Spain_PNOA_Mosaico,
"PNOA Máx. Actualidad": Spain_PNOA_Ortoimagen,
"PNOA 2010": Spain_PNOA_2010
};
var overlayers = {
"Unidades administrativas": Spain_UnidadAdministrativa
};
L.control.layers(baselayers, overlayers,{collapsed:false}).addTo(map);
Para ver algunos ejemplos acceder a la carpeta examples.
To see some examples access the examples folder.
./examples/index.html
./examples/pnoa.html
./examples/andalucia.html
##Demo
WMS | Layers |
---|---|
PNOA Máxima actualidad | Spain_PNOA_Ortoimagen, Spain_PNOA_Mosaico |
PNOA Histórico | Spain_PNOA_2004, Spain_PNOA_2005, Spain_PNOA_2006, Spain_PNOA_2007, Spain_PNOA_2008, Spain_PNOA_2009, Spain_PNOA_2010 |
Unidades administrativas | Spain_UnidadAdministrativa |
Cartografía raster IGN | Spain_MapasrasterIGN |
Mapa base de España IGN | Spain_IGNBase |
Modelos Digitales del Terreno de España | Spain_MDT_Elevaciones,Spain_MDT_Orientaciones, Spain_MDT_Pendientes |
WMS | Layers |
---|---|
Cartografía Catastral | Spain_Catastro |
###Instituto de Estadística y Cartografía de Andalucía
WMS | Layers |
---|---|
Callejero Digital de Andalucía Unificado | Andalucia_CDAUVialyPortal, Andalucia_CDAUBase |
Mapa Toporaster10 | Andalucia_MapaToporaster10 |
This work is licensed under a Creative Commons Attribution 3.0 Unported License.