TEST Capas WFS

by SIGC GUADALTEL

HTML

<script src="https://sigc-dev.desarrollo.guadaltel.es/mapea5/js/mapea-5.2.0.ol.min.js"></script>
<link rel="stylesheet" href="https://sigc-dev.desarrollo.guadaltel.es/mapea5/assets/css/mapea-5.2.0.ol.min.css">
<script src="https://sigc-dev.desarrollo.guadaltel.es/mapea5/js/configuration-5.2.0.js"></script>
<div id="map"></div>

CSS

html,
body,
#map {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

JavaScript

//CREACION DEL MAPA
        var mapajs = M.map({
            container: 'map',
            controls: ['panzoombar', 'mouse', 'scale', 'scaleline' ,'OverviewMap','LayerSwitcher'],
            wmcfiles: ['https://www.juntadeandalucia.es/institutodeestadisticaycartografia/WMC/public/WMC_basico_atenuado1.xml*Contexto'],
            projection: 'EPSG:25830*m',
            zoom: 0
        });
  
  
  
  let pangea = new M.layer.WFS({ 
  	url: 'https://www.juntadeandalucia.es/medioambiente/mapwms/REDIAM_WFS_pangea?',
    // namespace: 'ms', 
    name: 'ms:igbdp_geometria', 
    legend: 'Prestaciones - Ámbito municipal', 
    geometry: 'POINT', 
    getFeatureOutputFormat: 'xml',
   })

	
    mapajs.addLayers([pangea]);