PageSourceSearch

https://www.maximal-radio.de/wp-content/themes/cmms-theme-maximal_radio/assets/dist/1.56/TrafficMap.js

js maximal-radio.de collected 2026-10-10 00:52:39 UTC 2,535 bytes, 1 lines download raw bytes

1import{_ as n}from"./app.js";import"./swiper.js";const s={name:"SoylentRadioTrafficMap",components:{},props:["element"],computed:{mapId(){return this.mapType==="osm"?"meineKarte":"googleMap"},mapType(){return this.element.data.map_type==="osm"?"osm":"google"},googleMapsKey(){if(this.element.data.gmaps_key)return this.element.data.gmaps_key},magicMapId(){if(this.element.data.magicmap_id)return this.element.data.magicmap_id}},methods:{hasGoogleWindowFunctions:function(){return window.google&&window.google.maps&&window.initialize},hasLeafletFunctions:function(){return window.L},initializeGoogleMap:function(){if(!this.hasGoogleWindowFunctions()){setTimeout(this.initializeGoogleMap,1e3);return}try{initialize()}catch(e){}},initializeLeaflet:function(){if(!this.hasLeafletFunctions()){setTimeout(this.initializeLeaflet,1e3);return}try{this.initializeOsm()}catch(e){}},initializeOsm(){let e=document.createElement("script");e.setAttribute("src","https://traffic.audiobroadcast.eu/magicmap?id="+this.magicMapId),document.head.appendChild(e)}},mounted(){if(this.mapType==="osm"){if(!this.hasLeafletFunctions()){let e=document.createElement("script");e.setAttribute("src","https://assets.welocal.world/js/leaflet/1.9.4/leaflet.js"),document.head.appendChild(e);let t=document.createElement("link");t.setAttribute("href","https://assets.welocal.world/js/leaflet/1.9.4/leaflet.css"),t.setAttribute("rel","stylesheet"),document.head.appendChild(t)}window.requestAnimationFrame(this.initializeLeaflet)}else{if(!this.hasGoogleWindowFunctions()){let e=document.createElement("script");if(e.setAttribute("src","https://maps.googleapis.com/maps/api/js?key="+this.googleMapsKey),document.getElementById("usercentrics-cmp")&&(e.setAttribute("type","text/plain"),e.setAttribute("data-usercentrics","Google Maps")),document.head.appendChild(e),document.getElementById("usercentrics-cmp")){let i=document.createElement("script");i.textContent="if(window['UC_UI']){UC_UI.enableScriptsForServicesWithConsent();}",document.head.appendChild(i)}let t=document.createElement("script");t.setAttribute("src","https://traffic.audiobroadcast.eu/magicmap?id="+this.magicMapId),document.head.appendChild(t)}window.requestAnimationFrame(this.initializeGoogleMap)}}},o=window.Vue.createElementVNode,c=window.Vue.openBlock,l=window.Vue.createElementBlock,r={class:"traffic-map"},d=["id"];function m(e,t,i,p,u,a){return c(),l("div",r,[o("div",{class:"map",id:a.mapId,style:{width:"100%",height:"100%"}},null,8,d)])}const g=n(s,[["render",m]]);export{g as default};

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.