const backgroundlayersOpts=[{id:"mapa",title:"Callejero",layers:["QUICK*Base_IGNBaseTodo_TMS"]},{id:"imagen",title:"Imagen",layers:["QUICK*BASE_PNOA_MA_TMS"]},{id:"hibrido",title:"H&iacute;brido",layers:["QUICK*BASE_HIBRIDO_LayerGroup"]}],implementationSwitcherOpts=[{id:"OL",type:"ol",title:"Open Layers",js:"js/apiidee.ol.min.js",css:"assets/css/apiidee.ol.min.css"},{id:"CS",type:"cesium",title:"Cesium",js:"js/apiidee.cesium.min.js",css:"assets/css/apiidee.cesium.min.css"}],params=window.location.search.split("&");let center="",zoom="",srs="",layers="",zoomConstrains="",extentConstrains="";params.forEach(i=>{if(i.indexOf("center")>-1){const o=i.split("=")[1].split(",");center=[parseFloat(o[0]),parseFloat(o[1])]}else if(i.indexOf("zoomConstrains")>-1){const o=i.split("=")[1];zoomConstrains=o}else if(i.indexOf("extentConstrains")>-1){const o=i.split("=")[1];extentConstrains=o}else if(i.indexOf("zoom")>-1){const o=i.split("=")[1];zoom=parseInt(o,10)}else if(i.indexOf("srs")>-1){const o=i.split("=")[1];srs=o}else if(i.indexOf("layers")>-1){let o=i.substring(i.indexOf("=")+1,i.length),e=[];const s=/LayerGroup\*.*?!/g;null!==o.match(s)&&(e=o.match(s).map(i=>i.slice(0,-1)),o=o.replace(s,"")),layers=o.split(",").filter(i=>""!==i).concat(e)}}),function(i){i.config("MOBILE_WIDTH","768"),i.config("API_IDEE_URL","https://componentes-desarrollo.idee.es/api-idee/"),i.config("PROXY_URL",`${"file"!==location.protocol&&"file:"!==location.protocol?location.protocol:"https:"}\//componentes-desarrollo.idee.es/api-idee/api/proxy`),i.config("PROXY_POST_URL",`${"file"!==location.protocol&&"file:"!==location.protocol?location.protocol:"https:"}\//componentes-desarrollo.idee.es/api-idee/proxyPost`),i.config("STATIC_RESOURCES_URL","https://componentes.idee.es/estaticos"),i.config("THEME_URL",`${"file"!==location.protocol&&"file:"!==location.protocol?location.protocol:"https:"}\//componentes-desarrollo.idee.es/api-idee/assets/`),i.config("predefinedWMC",{urls:"https://componentes.idee.es/estaticos/Datos/WMC/mapa.xml,https://componentes.idee.es/estaticos/Datos/WMC/hibrido.xml,https://componentes.idee.es/estaticos/Datos/WMC/satelite.xml,https://componentes.idee.es/estaticos/Datos/WMC/context_cdau_callejero.xml,https://componentes.idee.es/estaticos/Datos/WMC/context_cdau_hibrido.xml,https://componentes.idee.es/estaticos/Datos/WMC/context_cdau_satelite.xml,https://componentes.idee.es/estaticos/Datos/WMC/contextCallejeroCache.xml,https://componentes.idee.es/estaticos/Datos/WMC/contextCallejero.xml,https://componentes.idee.es/estaticos/Datos/WMC/callejero2011cache.xml,https://componentes.idee.es/estaticos/Datos/WMC/ortofoto2011cache.xml,https://componentes.idee.es/estaticos/Datos/WMC/hibrido2011cache.xml,https://componentes.idee.es/estaticos/Datos/WMC/contextOrtofoto.xml".split(",").map(i=>i),predefinedNames:"mapa,hibrido,satelite,cdau,cdau_hibrido,cdau_satelite,callejerocacheado,callejero,callejero2011cache,ortofoto2011cache,hibrido2011cache,ortofoto".split(","),names:"Mapa,Hibrido,Satelite,Callejero,Hibrido,Satelite,mapa callejero cache,mapa del callejero,Callejero,Ortofoto,HÃ­brido,mapa ortofoto".split(",")}),i.config("tileMappgins",{tiledNames:"${tile.mappings.tiledNames}".split(","),tiledUrls:"${tile.mappings.tiledUrls}".split(","),names:"${tile.mappings.names}".split(","),urls:"${tile.mappings.urls}".split(",")}),i.config("DEFAULT_PROJ","EPSG:3857"),i.config("baseLayer","QUICK*Base_IGNBaseTodo_TMS"),i.config("terrain",{default:"QUICK*MDT_TERRAIN"}),i.config("controls",{default:""}),i.config("backgroundlayers",backgroundlayersOpts),i.config("implementationswitcher",implementationSwitcherOpts),i.config("SQL_WASM_URL",`${"file"!==location.protocol&&"file:"!==location.protocol?location.protocol:"https:"}\//componentes-desarrollo.idee.es/api-idee/wasm/`),i.config("MAP_VIEWER_CENTER",center),i.config("MAP_VIEWER_ZOOM",zoom),i.config("MAP_VIEWER_ZOOM_CONSTRAINS",zoomConstrains),i.config("MAP_VIEWER_EXTENT_CONSTRAINS",extentConstrains),i.config("MAP_VIEWER_SRS",srs),i.config("MAP_VIEWER_LAYERS",layers),i.config("DPI",72),i.config("DPI_OGC",25.4/.28),i.config("MOVE_MAP_EXTRACT",!0),i.config("MAX_ZOOM","28"),i.config("MIN_ZOOM","0"),i.config("DEFAULT_ZOOM","3"),i.config("ACTIVATE_RESOLUTIONS","false"),i.config("POPUP_INTELLIGENCE",{activate:!0,sizes:{images:["120px","75px"],videos:["500px","300px"],documents:["500px","300px"],audios:["250px","40px"]}}),i.config("DIALOG_INTELLIGENCE",{activate:!0,sizes:{images:["120px","75px"],videos:["500px","300px"],documents:["500px","300px"],audios:["250px","40px"]}}),i.config("ZOOM_LOCATION","16"),window.M=i}(window.IDEE);