PageSourceSearch

https://www.meteoconsult.es/build/webgl_map.2af5b12a5617bb7a7e63.js

js meteoconsult.es collected 2026-09-26 13:23:44 UTC 9,578 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e;!function(e){e.NO="No",e.DEFAULT="Global",e.DEFAULT2="GlobalV2",e.DEFAULT3="GlobalV3",e.BLUE_MARBLE="BlueMarble",e.MARINE="MapDataMarine",e.TERRESTRE="MapTerrestre",e.BORDERS="Borders",e.FRONTO="CarteNavigation",e.ESRI="esri-worldimagery",e.MapDataTerrestre="MapDataTerrestre"}(e||(e={}));const a={};a[e.NO]={id:e.NO,priority:999,maxNativeZoom:0,ext:"jpg",tms:!1},a[e.DEFAULT]={id:e.DEFAULT3,priority:10,maxNativeZoom:11,ext:"jpg",tms:!1},a[e.BLUE_MARBLE]={id:e.BLUE_MARBLE,priority:20,maxNativeZoom:12,ext:"jpg",tms:!0},a[e.ESRI]={id:e.ESRI,priority:20,maxNativeZoom:12,ext:"jpg",tms:!0},a[e.BORDERS]={id:e.BORDERS,priority:100,maxNativeZoom:11,ext:"png",tms:!1},a[e.TERRESTRE]={id:e.TERRESTRE,priority:110,maxNativeZoom:11,ext:"png",tms:!1},a[e.MapDataTerrestre]={id:e.MapDataTerrestre,priority:110,maxNativeZoom:11,ext:"png",tms:!1},a[e.MARINE]={id:e.MARINE,priority:120,maxNativeZoom:11,ext:"png",tms:!1},a[e.FRONTO]={id:e.FRONTO,priority:130,maxNativeZoom:11,ext:"png",tms:!1};const t=function*(){let e=0;for(;;)yield e++}();window.InteractiveMap=class{error(e,a){if("web"===this.platform)return console.error(`McLcmMap - Error #${e} container:${this.containerId}, ${a}`),void this.dispatch("error",{container:this.containerId,errorId:e,strLog:a});"android"!==this.platform&&"androidtab"!==this.platform?"iphone"!==this.platform&&"ipad"!==this.platform||window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"error",data:{errorId:e,strLog:a}}):window.BridgeApp.onError(e,a)}warning(e,a){if("web"===this.platform)return console.warn(`McLcmMap - Warning #${e} container:${this.containerId}, ${a}`),void this.dispatch("warning",{container:this.containerId,warningId:e,strLog:a});"android"!==this.platform&&"androidtab"!==this.platform?"iphone"!==this.platform&&"ipad"!==this.platform||window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"warning",data:{warningId:e,strLog:a}}):window.BridgeApp.onWarning(e,a)}log(e,a){this.debug&&(console.log("%cMcLcmMap%c\t"+e,"color:#00ff00;background:linear-gradient(#444, #222);padding:0 4px;border-radius:4px","",a||""),"android"!==this.platform&&"androidtab"!==this.platform?"iphone"!==this.platform&&"ipad"!==this.platform||window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"log",data:{message:e,moreData:a||""}}):window.BridgeApp.onLog(e,JSON.stringify(a||"")))}dispatch(e,a){this.log(`> dispatch > ${e}`,a),"web"===this.platform?document.getElementById(this.containerId).dispatchEvent(new CustomEvent(e,{detail:a})):document.dispatchEvent(new CustomEvent(e,{detail:a}))}listenMapEvents(){this.webglMap&&(window.mapJS.onModelChange.add(e=>{if(sessionStorage.getItem("modelID")!==e.newModel){let a=sessionStorage.getItem("modelID");if(sessionStorage.setItem("modelID",e.newModel),"radar"!==a&&"eumetsat"!==a){if("web"===this.platform){const a=new CustomEvent("mapModelChange",{detail:{id:this.currentParamId,newModel:e.newModel,type:e.type}});document.dispatchEvent(a)}"android"!==this.platform&&"androidtab"!==this.platform||(console.log("here we disptach the modelChange for android with :",this.currentParamId,e.newModel,e.type),window.BridgeApp.onModelChange(this.currentParamId,e.newModel,e.type)),"iphone"!==this.platform&&"ipad"!==this.platform||window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"mapModelChange",data:{id:this.currentParamId,newModel:e.newModel,type:e.type}})}}}),window.mapJS.onMapReady.add(()=>{"web"===this.platform&&this.dispatch("mapReady"),"android"!==this.platform&&"androidtab"!==this.platform||window.BridgeApp.onMapReady(),"iphone"!==this.platform&&"ipad"!==this.platform||(window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"mapReady",data:{}}),window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"mapProcessEnd",data:{}}))}),window.mapJS.onMapMove.add((e,a)=>{let[t,i]=e;"web"!==this.platform?"android"!==this.platform&&"androidtab"!==this.platform?"iphone"!==this.platform&&"ipad"!==this.platform||window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"mapMove",data:{lat:i,lon:t,zoom:a}}):window.BridgeApp.onMapMove(i,t,a):this.dispatch("mapMove",{lat:i,lon:t,zoom:a})}),window.mapJS.onPickerValueChange.add(e=>{if("web"===this.platform){const a=document.getElementById("picker-info");return void(a&&(a.textContent=`${e.formattedValue}`))}if("android"!==this.platform&&"androidtab"!==this.platform){if("iphone"===this.platform||"ipad"===this.platform)try{const a=JSON.parse(JSON.stringify(e));window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"pickerValueChange",data:a})}catch(e){console.error("[pickerValueChange] postMessage ERROR:",e)}}else window.BridgeApp.onPickerValueChange(JSON.stringify(e))}),window.mapJS.onRoutingChange.add(e=>{if("web"!==this.platform)if("android"!==this.platform&&"androidtab"!==this.platform){if("iphone"===this.platform||"ipad"===this.platform)try{const a=JSON.parse(JSON.stringify(e));window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"onRoutingChange",data:a})}catch(e){console.error("[onRoutingChange] postMessage ERROR:",e)}}else window.BridgeApp.onRoutingChange(JSON.stringify(e))}))}setDateAndContinue(){this.activeParams.size>
10&&this.activeParams.forEach(e=>{this.setParamCurrentDate(e.id)})}proceedDisplay(e){this.isProcessRunning&&this.newStackToCome||(this.showBackgroundAndForegroundTiles(),this.manageMapBackgroundColor(),this.autoplay.lastOverlays.forEach(e=>{this.removeOverlay(e)}))}constructor(e){this.debug=/map/.test(new URLSearchParams(window.location.search).get("extra")||""),this.platform="web",this.isProcessRunning=!1,this.webglMap=!0,this.containerId="",this.publisher="",this.currentParamId="",this.imgFormat="webp",this.initialized=!1,this.mode="user",this.markers=new Map,this.activeParams=new Map,this.confParams=new Map,this.forcedTiling={},this.newStackToCome=!1,this.autoplay={active:!1,lastOverlays:[]},this.publisher=e.publisher,"android"!==this.platform&&"androidtab"!==this.platform?(this.containerId=e.target,this.platform=e.platform,"iphone"!==this.platform&&"ipad"!==this.platform||window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"mapProcessStart",data:{}}),this.listenMapEvents(),this.initializeMap(e),setTimeout(()=>{"android"!==this.platform&&"androidtab"!==this.platform?"iphone"!==this.platform&&"ipad"!==this.platform||window.webkit.messageHandlers.BridgeApp.postMessage({eventName:"mapProcessEnd",data:{}}):window.BridgeApp.onProcessEnd()},1e3)):window.BridgeApp.onProcessStart()}initializeMap(e){this.mode=e.webgl?"screenshot":"user",window.mapJS.init({domElement:document.getElementById(e.target),env:e.env,publisher:e.publisher,platform:"lachainemeteo"===e.publisher&&"androidtab"===e.platform?"android_tab":e.platform,latlon:e.latlon,zoom:e.zoom,cityDisplay:e.citiesDisplay,cityThreejs:e.webgl,mode:this.mode,model:e.model,pickerBehavior:e.pickerBehavior,pickerAppearance:e.pickerAppearance})}on(e,a,t){"web"===this.platform?document.getElementById(this.containerId).addEventListener(e,a,t):document.addEventListener(e,a,t)}display(e,a){this.currentParamId=e.datas[0].id,"screenshot"===this.mode&&("vent_kmh"===this.currentParamId&&null==e.datas[0].overlay&&("meteoconsultmarine"===this.publisher?e.datas[0].overlay=["barbs"]:e.datas[0].overlay=["arrows"]),"houle_cm"===this.currentParamId&&null==e.datas[0].overlay&&(e.datas[0].overlay=["arrows"]),"prmsl"===this.currentParamId&&null==e.datas[0].overlay&&(e.datas[0].overlay=["isobars"])),this.initialized||"user"!==this.mode?window.mapJS.display(e,!0):(setTimeout(()=>{window.mapJS.display(e,!0)},500),this.initialized=!0)}setDragging(e,a){window.mapJS.setDragging(e,a)}addGeolocationPin(e,a){window.mapJS.addGeolocationPin(e,a,"https://static5.mclcm.net/lcm2018/int/map/pin-geoloc-lcm.svg")}hideGeolocationPin(){window.mapJS.hideGeolocationPin()}prepareMarker(e){this.log("prepareMarker");const a=`marker.${t.next().value}`;setTimeout(()=>(window.mapJS.prepareMarker(e),a),2e3)}showMarkers(e){setTimeout(()=>{if(e){const a=Array.isArray(e)?e:[e];this.log("showMarkers",a),console.log("showMarkers called mapjs  with markers IDS to SHOW:"),a.forEach(e=>{window.mapJS._preparedMarkers.has(e)?(console.log(e),window.mapJS.addPreparedMarker(e)):this.warning(1005,`showMarkers, ${e}`)})}else{this.log("showMarkers: no ids specified, showing all prepared markers");window.mapJS.getPreparedMarkerIds().forEach(e=>{window.mapJS.addPreparedMarker(e)})}},2200)}hideMarkers(e){if(!e){this.log("hideMarkers: no ids specified, hiding all prepared markers");window.mapJS.getPreparedMarkerIds().forEach(e=>{window.mapJS.removePreparedMarker(e)})}}deleteMarkers(e){if(!e){this.log("deleteMarkers: no ids specified, deleting all prepared markers");window.mapJS.getPreparedMarkerIds().forEach(e=>{window.mapJS.removePreparedMarker(e),window.mapJS._preparedMarkers.delete(e)})}}updateParamLegend(e,a){if(!this.confParams.has(e))return void this.warning(1004,`updateParamLegend : ${e}`);const t=this.confParams.get(e);this.isParamColor(t)?(a.forEach((e,a)=>{e.domain&&(t.legendsInfos[a].domains=e.domain),e.colors&&(t.legendsInfos[a].colors=e.colors)}),this.setParamLegend(e)):this.warning(101,`updateParamLegend : ${e}`)}setView(e,a){window.mapJS.panTo(e.lat,e.lon),setTimeout(()=>{window.mapJS.zoomTo(a),window.mapJS.addGeolocationPin(e.lat,e.lon)},1400)}fitToBounds(e){window.mapJS.fitToBounds(e)}updateZoom(e){window.mapJS.updateZoom(e)}setControlEvents(e){}autoRemoveOverlaysOnMove(e){this.warning(99,"autoRemoveOverlaysOnMove() deprecated ! use setAutoplay()"),this.playInProgress(e)}playInProgress(e){this.autoplay.active=e}}})();

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.