PageSourceSearch

https://stah.org/js/dist/mapLegacy-min.js?v=JeSu_dyamKgHKVtnEcql2fFdlT2Fv6QYen9pudVdsi0

js stah.org collected 2026-10-02 16:47:44 UTC 3,544 bytes, 2 lines download raw bytes

1const MapsLegacy=(()=>{let e=null;const t=(e,t,a)=>new google.maps.Marker({position:t,map:e,draggable:!1,icon:a}),a=(t,a,o)=>{(e=new google.maps.InfoWindow({content:t})).open(a,o)},o=(t,o)=>{const n=new UrlSearchParams(location),s=new UrlSearchParams;s.set("services",n.get("services")),s.set("facilities",n.get("facilities")||n.get("Condition")),s.set("nodeId",f.dataset.nodeid),s.set("sectionId",n.get("SectionId")||document.getElementById("SectionId").value);const p=o.dataset.nodeid,d=o.dataset.mapIcon,l=o.dataset.mapInfoWindow,i=o.dataset.mapClickToShowInfo;return fetch(`/umbraco/api/MapPointer/ServiceLocation?${s}`).then(e=>e.json()).then(n=>{const s=[],c=new google.maps.LatLngBounds;n.filter(e=>e.latitude&&e.longitude).forEach((n,r)=>{const m=new google.maps.LatLng(n.Latitude,n.Longitude),g=new google.maps.Marker({position:m,icon:d+o.Colour,map:t,id:`point${r+1}`});s.push(g),c.extend(g.position),l&&((t,o,n)=>{google.maps.event.addListener(o,"click",()=>{"object"==typeof e&&(e.close(),e=null),fetch(`/umbraco/api/MapPointer/ServiceLocationContent?nodeId=${t}`).then(e=>e.text()).then(e=>a(e,n,o))})})(p,g,t),i&&g.addListener("click",()=>{document.querySelector(".map-info-pop").style.display="none";const e=document.getElementById(g.get("id"));e.style.top=t.offsetTop+200,e.style.left=t.offsetLeft+50,e.style.display=""})}),t.fitBounds(c)})},n=e=>{const n=e.dataset.mapLatitude,s=e.dataset.mapLongitude,p=e.dataset.mapZoom,d=e.dataset.mapType,l=e.dataset.mapIcon,i=e.dataset.mapScrollwheel,c=new google.maps.LatLng(n,s),r={zoom:p,mapTypeId:google.maps.MapTypeId[d],scrollwheel:i,disableDefaultUI:!0,zoomControl:!0,maxZoom:e.dataset.mapMaxzoom},m=e.querySelector(".map"),g=new google.maps.Map(m,r),u=e.dataset.mapMode,y=e.dataset.mapMarkers;"serviceLocations"===u?o(g,e):"pageread"===u?((e,t)=>{const o=new google.maps.LatLngBounds,n=t.dataset.mapIcon;document.querySelectorAll('[data-plugin="filteritem"]').forEach(t=>{const s=new google.maps.LatLng(t.dataset.pointlatitude,t.dataset.pointlongitude),p=new google.maps.Marker({position:s,icon:n,map:e});o.extend(p.position),p.addListener("click",()=>{a(t.dataset.mapcontent,e,p)})}),e.fitBounds(o)})(g,e):"multiple"===u?(t(g,c,l),y&&JSON.parse(y).forEach(e=>{t(g,e.position,e.imageUrl)})):console.error("current multi-mode not supported.")};let s=[];const p=e=>{if("object"==typeof google&&"object"==typeof google.maps)return"single"!==e.dataset.mapMode.toLowerCase()?n(e):(e=>{const a=e.dataset.mapLatitude,o=e.dataset.mapLongitude,n=e.dataset.mapType,s=e.dataset.mapIcon,p=new google.maps.LatLng(a,o),d={zoom:parseInt(e.dataset.mapZoom),center:p,mapTypeId:google.maps.MapTypeId[n],scrollwheel:"true"===e.dataset.mapScrollwheel},l=e.querySelector(".map"),i=new google.maps.Map(l,d);return t(i,p,s),i})(e);if(!s.length){const t=document.createElement("script");t.src=`https://maps.googleapis.com/maps/api/js?${e.dataset.mapkey.trim()?`key=${e.dataset.mapkey.trim()}&`:""}callback=lazyLoadedLegacyGoogleMaps`,t.tyle="text/javascript",document.querySelector("head").appendChild(t)}s.push(e)},d=()=>{s.forEach(e=>p(e)),s=[]};window.lazyLoadedLegacyGoogleMaps=d;return{bind:e=>{if("map-placeholder"===e.id){const t=e.closest(".map");e.addEventListener("click",()=>{e.style.display="none",t.querySelector("#map-canvas").style.display="",t.dataset.mapProvider="google",p(t)})}else p(e)},lazyLoaded:d}})();ControlBinders.register("[data-map-provider='google']",MapsLegacy.bind),ControlBinders.register("img#map-placeholder",MapsLegacy.bind);
2//# sourceMappingURL=mapLegacy-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.