<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
        <meta name="mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <link rel="stylesheet" href="/css/leaflet.css">
        <link rel="stylesheet" href="/css/qgis2web.css"><link rel="stylesheet" href="/css/fontawesome-all.min.css">
        <style>
        #map {
            width: 1308px;
            height: 588px;
        }
        </style>
        <title></title>
    </head>
    <body>
        <div id="map">
        </div>
        <script src="/js/qgis2web_expressions.js"></script>
        <script src="/js/leaflet.js"></script>
        <script src="/js/leaflet.rotatedMarker.js"></script>
        <script src="/js/leaflet.pattern.js"></script>
        <script src="/js/leaflet-hash.js"></script>
        <script src="/js/Autolinker.min.js"></script>
        <script src="/js/rbush.min.js"></script>
        <script src="/js/labelgun.min.js"></script>
        <script src="/js/labels.js"></script>
        <script src="/js/leaflet.wms.js"></script>
        <script>
        var map = L.map('map', {
            zoomControl:true, maxZoom:28, minZoom:1
        }).fitBounds([[35.30309298551421,-12.435250917879609],[42.52252169866534,7.908054843334621]]);
        var hash = new L.Hash(map);
        map.attributionControl.setPrefix('<a href="https://github.com/tomchadwin/qgis2web" target="_blank">qgis2web</a> &middot; <a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a> &middot; <a href="https://qgis.org">QGIS</a>');
        var autolinker = new Autolinker({truncate: {length: 30, location: 'smart'}});
        function removeEmptyRowsFromPopupContent(content, feature) {
         var tempDiv = document.createElement('div');
         tempDiv.innerHTML = content;
         var rows = tempDiv.querySelectorAll('tr');
         for (var i = 0; i < rows.length; i++) {
             var td = rows[i].querySelector('td.visible-with-data');
             var key = td ? td.id : '';
             if (td && td.classList.contains('visible-with-data') && feature.properties[key] == null) {
                 rows[i].parentNode.removeChild(rows[i]);
             }
         }
         return tempDiv.innerHTML;
        }
        document.querySelector(".leaflet-popup-pane").addEventListener("load", function(event) {
          var tagName = event.target.tagName,
            popup = map._popup;
          // Also check if flag is already set.
          if (tagName === "IMG" && popup && !popup._updated) {
            popup._updated = true; // Set flag to prevent looping.
            popup.update();
          }
        }, true);
        var bounds_group = new L.featureGroup([]);
        function setBounds() {
        }
        map.createPane('pane_Callejerogris_0');
        map.getPane('pane_Callejerogris_0').style.zIndex = 400;
        var layer_Callejerogris_0 = L.WMS.layer("http://www.ign.es/wms-inspire/ign-base", "IGNBaseTodo-gris", {
            pane: 'pane_Callejerogris_0',
            format: 'image/png',
            uppercase: true,
            transparent: true,
            continuousWorld : true,
            tiled: true,
            info_format: 'text/html',
            opacity: 1,
            identify: false,
            attribution: '',
        });
        map.addLayer(layer_Callejerogris_0);
        map.createPane('pane_Actividadesdadelasvaspecuarias2024_1');
        map.getPane('pane_Actividadesdadelasvaspecuarias2024_1').style.zIndex = 401;
        var layer_Actividadesdadelasvaspecuarias2024_1 = L.WMS.layer("https://geoserver.picp.es/geoserver/actividades/wms", "Actividades día de las vías pecuarias 2024", {
            pane: 'pane_Actividadesdadelasvaspecuarias2024_1',
            format: 'image/png',
            uppercase: true,
            transparent: true,
            continuousWorld : true,
            tiled: true,
            info_format: 'text/html',
            opacity: 1,
            identify: false,
            attribution: '',
        });
        map.addLayer(layer_Actividadesdadelasvaspecuarias2024_1);
        setBounds();
        </script>
    </body>
</html>