Inicio
Descripción
Ejemplos
Elementos del Paisaje
Actualizar mapa
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Documento HTML</title> <script src="https://cdn.jsdelivr.net/npm/ol@v9.1.0/dist/ol.js"></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v9.1.0/ol.css"/> <style> html, body { margin: 0; padding: 0; height: 100%; } .map { width: 100%; height: 100%; } </style> </head> <body> <div id="map" class="map"></div> <script> var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.XYZ({ url: 'https://tms-ign-base.idee.es/1.0.0/IGNBaseTodo/{z}/{x}/{-y}.jpeg' }) }), new ol.layer.Tile({ source: new ol.source.TileWMS({ url: 'https://wms.mapa.gob.es/sigpac/wms?service=wms&request=getcapabilities', params: { 'LAYERS': 'e_paisaje', 'TILED': true, }, serverType: 'geoserver' }), opacity: 0.9 }), new ol.layer.Tile({ source: new ol.source.TileWMS({ url: 'https://wms.mapa.gob.es/sigpac/wms?service=wms&request=getcapabilities', params: { 'LAYERS': 'e_paisaje_linea', 'TILED': true, }, serverType: 'geoserver' }), opacity: 0.7 }), new ol.layer.Tile({ source: new ol.source.TileWMS({ url: 'https://wms.mapa.gob.es/sigpac/wms?service=wms&request=getcapabilities', params: { 'LAYERS': 'e_paisaje_punto', 'TILED': true, }, serverType: 'geoserver' }), opacity: 0.7 }) ], view: new ol.View({ center: ol.proj.fromLonLat([-4.980, 39.988]), zoom: 16 }) }); </script> </body> </html>