PageSourceSearch

https://orleansexpress.com/wp-content/plugins/oexp-map/js/oexp-map.min.js?ver=1788445783

js orleansexpress.com collected 2026-09-24 09:35:32 UTC 5,441 bytes, 2 lines download raw bytes

1!function(e){e.fn.OExpMap=function(o){const n=this;let s;const t=[];let a;var l=document.querySelector(".network-map__map");new IntersectionObserver(function(n,t){("boolean"==typeof n[0].isIntersecting?n[0].isIntersecting:n[0].intersectionRatio>0)&&(e.ajax({url:oexp_map.datasource,success:function(e){s=e,c(o)},error:function(e){window.oeDebug&&window.oeDebug.map("Error loading map data:",e)}}),t.unobserve(l))},{rootMargin:"100px",threshold:0}).observe(l);const i=e=>{r(s.stops.filter(o=>o.code===e.code)[0])},p=e=>{const o=t.filter(o=>o.code===e)[0],n=o.icon;n.fillColor="#fff",o.setIcon(n)},r=n=>{if(a.stopCode&&p(a.stopCode),0===t.filter(e=>e.code===n.code).length)return void(window.oeDebug&&window.oeDebug.map(`Stop code ${n.code} is not in our list!`));const l=t.filter(e=>e.code===n.code)[0],i=l.icon;i.fillColor=i.strokeColor,"stop"===o.map_mode&&(i.fillColor="#fff",i.scale=18),l.setIcon(i);const r=encodeURIComponent(`${n.address.street}, ${n.address.zipCode}`);let c=`\n        <span class="title">${n.name}</span>\n        <span class="address">${n.address.name}<br>\n        ${n.address.street}<br>\n        ${n.address.street2?`${n.address.street2}<br>`:""}\n        ${n.address.zipCode}<br>\n        </span>\n        <span class="directions"><a href="https://www.google.com/maps/dir/?api=1&destination=${r}" target="_blank">${wp.i18n._x("Directions","Direction link in infowindow","oexp-map")}</a></span>\n        <span class="services"></span>\n        <span class="lines"></span>\n      `;const d=e("<div />",{class:"infowindow",html:c});for(const o of n.services)e(".services",d).append(e("<span />",{class:"service-code",text:o,title:oexp_map.legend.services[o]}));for(const o of n.on_lines){const n=s.lines.filter(e=>e.number===o)[0];if(!n)continue;let t=e("<span/>",{class:"line"});t.append(e("<span/>",{class:"line-code",style:`background-color: ${n.color}`})),t.append(e("<span/>",{class:"line-name",text:n.name})),e(".lines",d).append(t)}a.setContent(d[0].outerHTML),a.stopCode=n.code,a.open(l.map,l)},c=o=>{if(!is_google_maps_loaded())return;a=new google.maps.InfoWindow({content:""}),google.maps.event.addListener(a,"closeclick",()=>{p(a.stopCode)});const l={zoom:7,minZoom:6,maxZoom:10,center:new google.maps.LatLng(47.317018,-69.378673),mapTypeId:"Greyscale",zoomControl:!1,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,scrollwheel:!1,disableDoubleClickZoom:!o.with_zoom_control,restriction:{latLngBounds:new google.maps.LatLngBounds(new google.maps.LatLng(41,-81.5),new google.maps.LatLng(52,-59.68))}};o.handleClickOnMarkers=!0,o.autoFitBoundsOnLoad=!0,"stop"===o.map_mode&&1===s.stops.filter(e=>e.code===o.stop_code).length&&(o.stop=s.stops.filter(e=>e.code===o.stop_code)[0],l.zoom=14,l.maxZoom=18,l.center=new google.maps.LatLng(o.stop.latitude,o.stop.longitude),o.autoFitBoundsOnLoad=!1);const c=new google.maps.Map(n.get(0),l),d=new google.maps.StyledMapType([{featureType:"all",stylers:[{saturation:-100},{lightness:30},{gamma:1}]}],{name:"Greyscale"});c.mapTypes.set("Greyscale",d);let g=!1;c.addListener("idle",()=>{if(!0===g)return;g=!0;const a=new google.maps.LatLngBounds(c.getCenter(),c.getCenter()),p=[...s.lines];p.sort((e,o)=>e["map_z-index"]-o["map_z-index"]);for(const e of p)for(const o of s.routes.filter(o=>o.on_line===e.number))for(const n of o.polylines)new google.maps.Polyline({path:google.maps.geometry.encoding.decodePath(n),strokeColor:e.color,strokeOpacity:.8,strokeWeight:3,clickable:!1,map:c});for(const e of s.stops){if(e.do_not_display)continue;const n=1===e.on_lines.length?s.lines.filter(o=>o.number===e.on_lines[0])[0].color:"#666",l=new google.maps.Marker({position:new google.maps.LatLng(e.latitude,e.longitude),map:c,icon:{path:google.maps.SymbolPath.CIRCLE,scale:1===e.on_lines.length?4:6,strokeWeight:3,strokeColor:n,fillColor:"#fff",fillOpacity:1},title:e.name,code:e.code});l.setZIndex(1===e.on_lines.length?9:10),a.extend(l.getPosition()),o.handleClickOnMarkers&&google.maps.event.addListener(l,"click",()=>{i(l)}),t.push(l)}if(o.autoFitBoundsOnLoad&&c.fitBounds(a),"stop"===o.map_mode&&r(o.stop),o.with_zoom_
1control){const o=e('<div class="zoom-box"><span rel="more">+</span><span rel="less">-</span><span rel="bar"><span class="gauge"></span></span></div>');o.find("span[rel=more]").on("click",()=>{c.setZoom(c.getZoom()+1)}),o.find("span[rel=less]").on("click",()=>{c.setZoom(c.getZoom()-1)}),n.append(o);const s=()=>{const e=(c.getZoom()-l.minZoom)/(l.maxZoom-l.minZoom);o.find(".gauge").css({height:Math.round(100*e).toString()+"%"})};google.maps.event.addListener(c,"zoom_changed",()=>{s()}),s()}if("none"!==o.with_legend){const t=e("<div/>",{class:`legend --${o.with_legend}`});n.append(t);let a,l=e("<div/>",{class:"services"});a=e("<span/>",{class:"title"}).text(wp.i18n._x("Legend","Legend title","oexp-map")),l.append(a);const i=e("<span/>",{class:"services-groups"});for(let o in oexp_map.legend.services)a=e("<span/>",{class:"service"}),a.append(e("<span/>",{class:"service-code"}).text(o)),a.append(e("<span/>",{class:"service-name"}).text(oexp_map.legend.services[o])),i.append(a);l.append(i),t.append(l),l=e("<div/>",{class:"lines"});for(const o of s.lines)a=e("<span/>",{class:"line"}),a.append(e("<span/>",{class:"line-code",style:`background-color: ${o.color}`})),a.append(e("<span/>",{class:"line-name",text:o.name})),l.append(a);t.append(l)}})}}}(jQuery);
2//# sourceMappingURL=oexp-map.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.