PageSourceSearch

https://mirame.chduero.es/chduero/assets/plugins/js/backimglayer.ol.min.js

js chduero.es collected 2026-09-24 18:09:00 UTC 26,604 bytes, 2 lines download raw bytes

1(()=>{var e={815:e=>{e.exports='<div id="div-contenedor" class="m-control m-container m-backimglayer">\n\n    <div role="heading" tabindex="0" aria-label="{{translations.headertitle}}" id="m-backimglayer-titulo">{{translations.headertitle}}</div>\n    <div id="m-backimglayer-previews">\n        {{#each layers}}\n            {{#if this.firstElement}}\n                </br>\n            {{/if}}\n\n            <div tabindex="0" role="button" id="m-backimglayer-lyr-{{this.id}}" title="{{this.title}}">\n                <img src="{{this.preview}}" tabindex="-1" alt="{{this.title}}" height="100px" width="100px" />\n                <span aria-hidden="true">{{this.title}}</span>\n                <div id="m-backimglayer-opacity-container">\n                    <input type="range" id="m-backimglayer-opacity-slider" min="0" max="1" step="0.1" value="1">\n                </div>\n            </div>\n\n        {{/each}}\n        {{#if empty}}\n          <div  tabindex="0" role="button" id="m-backimglayer-lyr-empty" title="{{translations.none}}">\n              <div height="100px" width="100px"></div>\n              <span>{{translations.none}}</span>\n          </div>\n        {{/if}}\n        \x3c!-- <button class="m-backimglayer-unique-btn" id="m-backimglayer-unique-btn" title="Selección de capa de fondo"></button> --\x3e\n    </div>\n</div>\n'},431:(e,t,r)=>{e.exports='<div>\n   <h2 style="text-align: center; color: #fff; background-color: #364b5f; padding: 8px 10px;">BACKIMGLAYER <img style="vertical-align: bottom; filter: invert(100%);" src="'+r(914)+'" width="30" height="30"></h2>\n   <div>\n      <p>{{translations.help1}}</p>\n      <img src="{{urlImages}}/view.png" style="max-width:70%; margin: 0 auto; display: block">\n      <p>{{translations.help2}}</p>\n      <ul>\n         <li>{{translations.help3}}</li>\n         <li>{{translations.help4}}</li>\n         <li>{{translations.help5}}</li>\n         <li>{{translations.help6}}</li>\n         <li>{{translations.help7}}</li>\n         <li>{{translations.help8}}</li>\n         <li>{{translations.help9}}</li>\n      </ul>\n      <p>{{translations.help10}}</p>\n      <p>{{translations.help11}} <a tabindex="0" href="https://www.idee.es/web/guest/directorio-de-servicios" target="_blank">{{translations.help12}}</a></p>\n   </div>\n</div>\n'},914:e=>{"use strict";e.exports="data:image/svg+xml;base64,PCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KPHRpdGxlPjwvdGl0bGU+CjxnIGlkPSJpY29tb29uLWlnbm9yZSI+CjwvZz4KPHBhdGggZmlsbD0iIzAwMCIgZD0iTTIzNy43MTQgMjkyLjU3MnYxMDkuNzE0cTAgMTQuODU3LTEwLjg1NyAyNS43MTR0LTI1LjcxNSAxMC44NTdoLTE0Ni4yODZxLTE0Ljg1NyAwLTI1LjcxNS0xMC44NTd0LTEwLjg1Ny0yNS43MTR2LTEwOS43MTRxMC0xNC44NTcgMTAuODU3LTI1LjcxNHQyNS43MTUtMTAuODU3aDE0Ni4yODZxMTQuODU3IDAgMjUuNzE0IDEwLjg1N3QxMC44NTcgMjUuNzE0ek0yMzcuNzE0IDczLjE0M3YxMDkuNzE1cTAgMTQuODU3LTEwLjg1NyAyNS43MTR0LTI1LjcxNSAxMC44NTdoLTE0Ni4yODZxLTE0Ljg1NyAwLTI1LjcxNS0xMC44NTd0LTEwLjg1Ny0yNS43MTR2LTEwOS43MTVxMC0xNC44NTcgMTAuODU3LTI1LjcxNXQyNS43MTUtMTAuODU3aDE0Ni4yODZxMTQuODU3IDAgMjUuNzE0IDEwLjg1N3QxMC44NTcgMjUuNzE1ek00OTMuNzE0IDI5Mi41NzJ2MTA5LjcxNHEwIDE0Ljg1Ny0xMC44NTcgMjUuNzE0dC0yNS43MTQgMTAuODU3aC0xNDYuMjg2cS0xNC44NTcgMC0yNS43MTQtMTAuODU3dC0xMC44NTctMjUuNzE0di0xMDkuNzE0cTAtMTQuODU3IDEwLjg1Ny0yNS43MTR0MjUuNzE0LTEwLjg1N2gxNDYuMjg2cTE0Ljg1NyAwIDI1LjcxNCAxMC44NTd0MTAuODU3IDI1LjcxNHpNNDkzLjcxNCA3My4xNDN2MTA5LjcxNXEwIDE0Ljg1Ny0xMC44NTcgMjUuNzE0dC0yNS43MTQgMTAuODU3aC0xNDYuMjg2cS0xNC44NTcgMC0yNS43MTQtMTAuODU3dC0xMC44NTctMjUuNzE0di0xMDkuNzE1cTAtMTQuODU3IDEwLjg1Ny0yNS43MTV0MjUuNzE0LTEwLjg1N2gxNDYuMjg2cTE0Ljg1NyAwIDI1LjcxNCAxMC44NTd0MTAuODU3IDI1LjcxNXoiPjwvcGF0aD4KPC9zdmc+Cg=="}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"Pu":{"name":"backimglayer","description":"Set
1s background layer","text":"Shows different options for background layer as clickable images and changes background layer on click on an option.","version":"2.0.0","date":"3rd September 2019","author":"CNIG","org":"CNIG","tags":"mapea,plugin","icon":"./facade/assets/icons/icons.svg"}}');var t=r(431),n=r.n(t),i=r(815),a=r.n(i);const o=JSON.parse('{"textHelp":{"help1":"Maps and cartography from the National Geographic Institute and the National Cartographic System used as background layers.","help2":"Shows a series of preconfigured layers. These are WMTS services that have great visualization performance and are available as a base layer for the entire national territory.","help3":"Map. Raster Map Service of the National Cartographic System (Map of Spain (ME) 1: 2,000,000, ME 1: 1,250,000, ME500 1: 500,000, Provincial Map 1: 200,000 (MP200), Topographic Map National 1: 50,000 (MTN50), MTN25 1: 25,000).","help4":"Image. Maximum current PNOA Orthophotos Service of the National Cartographic System (Sentinel 2, PNOA Ortophotos).","help5":"Street. Base Map Service of the National Cartographic System (Cartociudad Street).","help6":"Hybrid. Combination of the maximum current Orthophoto Service of the PNOA and Base Map Service of the National Cartographic System.","help7":"LiDAR. (Relief) LiDAR Service of the National Cartographic System.","help8":"Land occupation. Land occupation service of the National Cartographic System (SIOSE).","help9":"Historical Maps Cartography corresponding to the first editions of the National Topographic Map scale 1: 50,000","help10":"The active layer is shown with a dark blue box. To leave the map area without any background layer, click on the active layer, which will stop the dark blue box from showing and the layer in the map. You can also use the \'None\' option.","help11":"It is only possible to view a single layer at a time. If you want to combine more than one of these layers, it must be loaded from the Layers tool, adding the URL of the service or selecting it among the preconfigured layers (a section has been provided for this purpose with the name \'Background Layers\'). You can consult the URLs for these services, and others, on the IDEE web portal in the section","help12":"Service Directory."},"tooltip":"Background layers","none":"None"}'),l=JSON.parse('{"textHelp":{"help1":"Mapas y cartografía del Instituto Geográfico Nacional y el Sistema Cartográfico Nacional utilizadas como capas de fondo.","help2":"Muestra una serie de capas preconfiguradas. Se trata de servicios WMTS que tienen un gran rendimiento en la visualización y que están disponibles como capa base para todo el territorio nacional.","help3":"Mapa. Servicio Mapa Ráster del Sistema Cartográfico Nacional (Mapa de España(ME) 1: 2.000.000, ME 1: 1.250.000, ME500 1: 500.000, Mapa Provincial 1: 200.000 (MP200), Mapa Topográfico Nacional 1: 50.000 (MTN50), MTN25 1: 25.000).","help4":"Imagen. Servicio Ortofotos máxima actualidad PNOA del Sistema Cartográfico Nacional (Sentinel 2, Ortofotos PNOA).","help5":"Callejero. Servicio Mapa Base del Sistema Cartográfico Nacional (Callejero Cartociudad).","help6":"Híbrido. Combinación Servicio Ortofotos máxima actualidad del PNOA y Servicio Mapa Base del Sistema Cartográfico Nacional.","help7":"LiDAR. (Relieve) Servicio LiDAR del Sistema Cartográfico Nacional.","help8":"Ocupación del suelo. Servicio Ocupación del suelo del Sistema Cartográfico Nacional (SIOSE).","help9":"Mapas Históricos Cartografía correspondiente a las primeras ediciones del Mapa Topográfico Nacional escala 1: 50.000","help10":"La capa activa se muestra con un recuadro azul oscuro. Para dejar la zona de mapa sin ninguna capa de fondo haga clic sobre la capa activa, lo que hará que deje de mostrarse el recuadro azul oscuro y la capa en el mapa. También puede utiliza la opción \'Ninguna\'.","help11":"Sólo es posible visualizar una única capa a la vez. Si quiere combinar más de una de estas capas, debe cargarse desde la herramienta Capas, añadiendo la URL del servicio o seleccionándola entre las capas preconfiguradas (se ha dispuesto un apartado a tal efecto con el nombre \'Capas de Fondo\'). Puede consultar las URL para estos servicios, y otras más, en el portal web de la IDEE en el apartado","help12":"Directorio de Servicios."},"tooltip":"Capas de fondo","none":"Ninguna"}');var c={en:o,es:l},s=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t="es","function"==typeof M.language.getLang&&(t=M.language.getLang()),t),n=function(e){return"es"===e||"en"===e?c[e]:M.language.getTranslation(e).backimglayer}(r),i="";return M.utils.isNullOrEmpty(n)?console.warn("The translation '".concat(r,"' has not been defined.")):i=e.split(".").reduce(function(e,t){return e[t]},n),i};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},f.apply(this,arguments)}
1function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(i,M.impl.Control);var e,t,r,n=h(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"addTo",value:function(e,t){var r=this;e.getMapImpl().getInteractions().forEach(function(e){e instanceof ol.interaction.DoubleClickZoom&&(r.dblClickInteraction_=e)}),f(m(i.prototype),"addTo",this).call(this,e,t)}},{key:"activateClick",value:function(e){this.dblClickInteraction_.setActive(!1),e.getMapImpl().on("dblclick",function(t){var r=new CustomEvent("mapclicked",{detail:t.coordinate,bubbles:!0});e.getContainer().dispatchEvent(r)})}},{key:"deactivateClick",value:function(e){this.dblClickInteraction_.setActive(!0),e.getMapImpl().removeEventListener("dblclick")}},{key:"setLayerVisibility",value:function(e,t){e.getImpl().getOL3Layer().setVisible(t)}}])&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}();function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e,t,r){return(t=O(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O(n.key),n)}}function O(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}
1function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=T(e);if(t){var i=T(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var k=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(i,M.Control);var e,t,r,n=S(i);function i(e){var t,r=e.map,a=e.visible,o=e.layerOpts,l=e.layerId,c=e.ids,u=e.titles,p=e.previews,y=e.layers,f=e.numColumns,d=e.empty,h=e.order;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),M.utils.isUndefined(v)&&M.exception(s("exception.impl"));var m,g=new v;if(t=n.call(this,g,"BackImgLayer"),r.getBaseLayers().forEach(function(e){e.on(M.evt.LOAD,r.removeLayers(e))}),t.layers=[],r._plugins.filter(function(e){return"backimglayer"===r._plugins[r._plugins.indexOf(e)].name}).map(function(e){return m=f}),void 0!==o){var N=o;o.filter(function(e){return 0!==o.indexOf(e)&&o.indexOf(e)%m===0}).map(function(e){var t=o.indexOf(e),r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e);return r.firstElement=!0,N[t]=r,r}),t.layers=N.slice(0)}else{var O=c.split(","),L=u.split(","),S=p.split(",");y.split(",").forEach(function(e,r){var n=e.split("sumar");n=n.map(function(e){var t,r=null;return/QUICK.*/.test(e)&&(r=M.getQuickLayers(e.replace("QUICK*",""))),M.utils.isNullOrEmpty(r)?t=new M.layer.WMTS(e):"string"==typeof(t=r)&&(t=new M.layer.WMTS(t)),t});var i={id:O[r],title:L[r],preview:S[r],layers:n};t.layers.push(i)})}return f>t.layers.length?t.numeroColumnas=110*t.layers.length:t.numeroColumnas=110*f,t.numeroColumnas+="px",t.flattedLayers=t.layers.reduce(function(e,t){return e.concat(t.layers)},[]),t.activeLayer=-1,t.idLayer=null===l?0:l,t.visible=a,t.empty=d,t.order=h,t}return e=i,(t=[{key:"createView",value:function(e){var t=this;return this.map=e,new Promise(function(e,r){var n=M.template.compileSync(a(),{vars:{layers:t.layers,empty:t.empty,translations:{headertitle:s("tooltip"),none:s("none")}}});t.accessibilityTab(n),t.html=n,t.listen(n),t.on(M.evt.ADDED_TO_MAP,function(){var e=t.visible;t.idLayer>-1&&(t.activeLayer=t.idLayer,t.showBaseLayer({currentTarget:{parentElement:n}},t.layers[t.activeLayer],t.activeLayer)),!1===e&&(t.map.removeLayers(t.map.getBaseLayers()),t.html.querySelector(".activeBackimglayerDiv").classList.remove("activeBackimglayerDiv"))}),e(n)})}},{key:"showEmptyLayer",value:function(e){var t=e.querySelector("#m-backimglayer-previews div.activeBackimglayerDiv");null!==t&&t.click()}},{key:"showBaseLayer",value:function(e,t,r){var n=this;this.visible=!1;var i=t.layers,a=e.currentTarget.parentElement.querySelector("#m-backimglayer-lyr-".concat(t.id)).classList.contains("activeBackimglayerDiv");i.forEach(function(e,t,r){var n=t;0!==t&&(n+=16),e.zindex_&&e.setZIndex(n)}),e.currentTarget.parentElement.querySelectorAll('div[id^="m-backimglayer-lyr-"]').forEach(function(e){e.classList.contains("activeBackimglayerDiv")}),a?this.empty?e.currentTarget.parentElement.querySelector("#m-backimglayer-lyr-empty").classList.add("activeBackimglayerDiv"):(e.currentTarget.parentElement.querySelector("#m-backimglayer-lyr-".concat(t.id)).classList.remove("activeBackimglayerDiv"),this.map.removeLayers(t.layers),this.setBaseLayersVisibility(!0)):(this.visible=!0,this.activeLayer=r,e.currentTarget.parentElement.querySelector("#m-backimglayer-lyr-".concat(t.id)).classList.add("activeBackimglayerDiv"),this.map.addLayers(i),this.map.on(M.evt.ADDED_LAYER,function(e){n.setBaseLayersVisibility(!0)})),this.fire("backimglayer:activeChanges",[{activeLayerId:this.activeLayer}])}},{key:"setBaseLayersVisibility",value:function(e){var t=this;
1this.map.getBaseLayers().forEach(function(r){t.getImpl().setLayerVisibility(r,e)})}},{key:"removeLayers",value:function(){try{this.map.removeLayers(this.flattedLayers)}catch(e){}try{this.map.removeLayers(this.map.getBaseLayers())}catch(e){}}},{key:"listen",value:function(e){var t=this;e.querySelector("#m-backimglayer-previews").style.width=this.numeroColumnas,e.querySelectorAll('div[id^="m-backimglayer-lyr-"]').forEach(function(r,n){"m-backimglayer-lyr-empty"===r.id?(r.addEventListener("click",t.showEmptyLayer.bind(t,e)),r.addEventListener("keydown",function(r){"Enter"===r.key&&t.showEmptyLayer(e)})):(r.addEventListener("click",function(e){return t.showBaseLayer(e,t.layers[n],n)}),r.addEventListener("keydown",function(e){"Enter"===e.key&&t.showBaseLayer(e,t.layers[n],n)}))}),e.querySelectorAll('div[id^="m-backimglayer-lyr-"]>div>input#m-backimglayer-opacity-slider').forEach(function(e,r){e.addEventListener("input",function(e){t.setLayerOpacity(e,t.layers[r],r),e.stopPropagation()}),e.addEventListener("click",function(e){e.stopPropagation()})})}},{key:"setLayerOpacity",value:function(e,t,r){t.layers.forEach(function(t){t.setOpacity(e.target.value)})}},{key:"equals",value:function(e){return e instanceof i}},{key:"accessibilityTab",value:function(e){var t=this;e.querySelectorAll('[tabindex="0"]').forEach(function(e){return e.setAttribute("tabindex",t.order)})}}])&&N(e.prototype,t),r&&N(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}();function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x(n.key),n)}}function x(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E(t)?t:String(t)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var P=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(c,M.Plugin);var t,r,i,a=I(c);function c(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this)).map_=null,t.controls_=[],t.name="backimglayer",t.options=r,t.position_=r.position||"TR",t.layerId=r.layerId||0,t.layerVisibility=!!r.layerVisibility,t.layerOpts=r.layerOpts,t.ids=r.ids||"wmts",t.titles=r.titles||"IGNBaseTodo",t.previews=r.previews||"https://componentes.cnig.es/api-core/plugins/backimglayer/images/svqmapa.png",t.layers=r.layers||"QUICK*BASE_MapaBase_IGNBaseTodo_WMTS",t.collapsed=void 0===r.collapsed||r.collapsed,t.collapsible=void 0===r.collapsible||r.collapsible,t.empty=void 0!==r.empty&&r.empty,t.columnsNumber=null!=r.columnsNumber?r.columnsNumber:2,t.metadata_=e.Pu,t.tooltip_=r.tooltip||s("tooltip"),t.order=r.order>=-1?r.order:null,t.visible=void 0===r.visible||r.visible,t}return t=c,i=[{key:"getJSONTranslations",value:function(e){return"en"===e||"es"===e?"en"===e?o:l:M.language.getTranslation(e).backimglayer}}],(r=[{key:"addTo",value:function(e){var t=this;this.controls_.push(new k({map:e,visible:this.visible,layerOpts:this.layerOpts,layerId:this.layerId,layerVisibility:this.layerVisibility,ids:this.ids,titles:this.titles,previews:this.previews,layers:this.layers,numColumns:this.columnsNumber,empty:this.empty,order:this.order})),this.map_=e,this.panel_=new M.ui.Panel("BackImgLayer",{collapsible:this.collapsible,collapsed:this.collapsed,position:M.ui.position[this.position_],className:"m-plugin-backimglayer",tooltip:this.tooltip_,collapsedButtonClass:"backimglyr-simbolo-cuadros",order:this.order}),this.controls_[0].on("backimglayer:activeChanges",function(e){t.layerId=e.activeLayerId}
1),this.panel_.addControls(this.controls_),e.addPanels(this.panel_)}},{key:"getAPIRest",value:function(){var e=void 0===this.layerOpts?"".concat(this.ids,"*!").concat(this.titles,"*!").concat(this.previews,"*!").concat(this.layers):this.turnLayerOptsIntoUrl();return"".concat(this.name,"=").concat(this.position_,"*!").concat(this.collapsed,"*!").concat(this.collapsible,"*!").concat(this.tooltip_,"*!").concat(this.layerVisibility,"*!").concat(this.layerId,"*!").concat(this.columnsNumber,"*!").concat(this.empty,"*!").concat(e)}},{key:"getAPIRestBase64",value:function(){return"".concat(this.name,"=base64=").concat(M.utils.encodeBase64(this.options))}},{key:"turnLayerOptsIntoUrl",value:function(){var e=this,t="",r="",n="",i="";return this.layerOpts.forEach(function(a){0!==e.layerOpts.indexOf(a)&&(t+=",",r+=",",n+=",",i+=","),t+=a.id,r+=a.title,n+=a.preview,a.layers.forEach(function(e){var t=0===a.layers.indexOf(e),r=void 0===e.options.visibility||e.options.visibility;t||(i+="sumar"),Object.keys(e.options).length>0?(i+="".concat(e.options.type),i+="*".concat(e.options.url),i+="*".concat(e.options.name),i+="*".concat(e.options.matrixSet),i+="*".concat(e.options.legend),i+="*".concat(e.options.transparent),i+="*".concat(e.options.format),i+="*".concat(e.options.displayInLayerSwitcher),i+="*".concat(e.options.queryable),i+="*".concat(r)):(i+="".concat(e.type),i+="*".concat(e.name),i+="*".concat(e.url),i+="*".concat(e.isVisible()),i+="*".concat(e.transparent),i+="*".concat(e.tileGridMaxZoom))})}),"".concat(t,"*!").concat(r,"*!").concat(n,"*!").concat(i)}},{key:"destroy",value:function(){this.map_.removeControls(this.controls_),this.map_=null,this.control_=null,this.controls_=null,this.panel_=null,this.name=null,this.layerOpts=null}},{key:"equals",value:function(e){return e instanceof c}},{key:"getMetadata",value:function(){return this.metadata_}},{key:"changeStyleResponsive",value:function(e){e?document.querySelectorAll(".m-panel.m-plugin-backimglayer").forEach(function(e){return e.classList.add("changeStyleResponsive")}):document.querySelectorAll(".m-panel.m-plugin-backimglayer").forEach(function(e){return e.classList.remove("changeStyleResponsive")})}},{key:"getHelp",value:function(){return{title:this.name,content:new Promise(function(e){e(M.template.compileSync(n(),{vars:{urlImages:"".concat(M.config.MAPEA_URL,"plugins/backimglayer/images/"),translations:{help1:s("textHelp.help1"),help2:s("textHelp.help2"),help3:s("textHelp.help3"),help4:s("textHelp.help4"),help5:s("textHelp.help5"),help6:s("textHelp.help6"),help7:s("textHelp.help7"),help8:s("textHelp.help8"),help9:s("textHelp.help9"),help10:s("textHelp.help10"),help11:s("textHelp.help11"),help12:s("textHelp.help12")}}}))})}}}])&&j(t.prototype,r),i&&j(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}();window.M.plugin||(window.M.plugin={}),window.M.control||(window.M.control={}),window.M.impl||(window.M.impl={}),window.M.impl.control||(window.M.impl.control={}),window.M.plugin.BackImgLayer=P,window.M.control.BackImgLayerControl=k,window.M.impl.control.BackImgLayerControl=v})()})();
2//# sourceMappingURL=backimglayer.ol.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.