PageSourceSearch

https://www.exploregwinnett.org/dist/BlockMap-CMfkApwz.js

js exploregwinnett.org collected 2026-10-03 21:54:45 UTC 3,542 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BasicMap-BQWlX_nT.js","./ListenerManager-B9zmCDZv.js","./GoogleMapsLoader-BItwxU3D.js","./sharedMapSettings-62mvULFP.js","./main-BpYodjiM.js","./feed-BMmvEeYE.js","./index--6mjBm2l.js","./feed-DcbYxcRy.css"])))=>i.map(i=>d[i]);
2import{g as d,_ as I}from"./main-BpYodjiM.js";import{L as b}from"./ListenerManager-B9zmCDZv.js";import{setMarkerUrlColor as v}from"./sharedMapSettings-62mvULFP.js";import{s as E,g as M}from"./featuredMapUtils-DRvLuD5K.js";import"./feed-BMmvEeYE.js";import"./index--6mjBm2l.js";const C=(u={})=>({mapEl:null,listingSelector:"[data-map-listing]",padIndex:!1,mapTheme:"standard",markers:[],listingEls:[],basicMapInstance:void 0,listenerBoss:new b,init(){return this.mapEl=this.$refs?.map??null,this.padIndex=u.padIndex??!1,this.mapTheme=u.mapTheme??"standard",()=>this.mounted()},mounted(){this.$el&&(this.$el.hidden=!1),this.setUpMap()},destroy(){this.listenerBoss.removeAll()},async setUpMap(){if(!this.$el||!this.mapEl){console.error("blockMap: map element not found");return}const{points:a,listingEls:t}=M(this.$el,this.listingSelector);if(this.listingEls=Array.from(t),!a.length)return;const[{default:l},{getDefaultMapOptions:s}]=await Promise.all([I(()=>import("./BasicMap-BQWlX_nT.js"),__vite__mapDeps([0,1,2]),import.meta.url),I(()=>import("./sharedMapSettings-62mvULFP.js"),__vite__mapDeps([3,4,5,6,7,1]),import.meta.url)]),i=await s(this.mapTheme);this.basicMapInstance=new l({outerEl:this.$el,mapEl:this.mapEl,mapOptions:i,points:a,onMapReady:(e,r)=>{this.handleMapReady(e,r)}})},handleMapReady(a,t){const l=d("--map-marker-color",void 0,"#00f"),s=d("--map-marker-color-hover",void 0,"#f00");this.markers=t;const i=this.markers.length;i&&this.markers.forEach((e,r)=>{const n=e,o=n.point.listingEl,c=o.querySelector("[data-map-listing-icon]"),f=d("--map-marker-color",o,l);let m=o.getAttribute("data-map-listing");this.padIndex&&(m=m.padStart(2,"0"));const h=o;h.marker=e,h.listingIconEl=c,h.fillColor=f,E(e,l,m);const p=e.getIcon(),g=Object.assign({},p);v(p,l),n.customDefaultIcon=p,v(g,s),n.customHoverIcon=g,n.customZIndex=i-r,e.setZIndex(n.customZIndex),e.addListener("mousedown",()=>{this.selectPair(o,e,void 0,c,s),o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}),e.addListener("mouseover",()=>{this.selectPair(o,e,void 0,c,s),o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}),e.addListener("mouseout",()=>{this.deselectPair(o,e,c,f)})}),this.listingEls.length&&this.listingEls.forEach(e=>{const n=e.marker??null,o=e.querySelector("[data-map-listing-icon]"),c=d("--map-marker-color",e,l);this.listenerBoss.register(e,"mouseover",()=>{this.selectPair(e,n,void 0,o,s)}),this.listenerBoss.register(e,"mouseout",()=>{this.deselectPair(e,n,o,c)})})},selectPair(a,t=null,l=900,s=null,i=null){if(this.deselectAll(),a.classList.add("hover"),t){const e=t;e.isSelected=!0;const r=e.customHoverIcon;t.setIcon(r??null);const n=t.getLabel()||{text:""};n.className="marker-label hover",t.setLabel(n),t.setZIndex(l)}s&&i&&(s.style.backgroundColor=i)},deselectPair(a,t=null,l=null,s=null){if(a.classList.remove("hover"),t){const i=t;i.isSelected=!1;const e=i.customDefaultIcon;t.setIcon(e??null);const r=t.getLabel()||{text:""};r.className="marker-label",t.setLabel(r),t.setZIndex(i.customZIndex)}l&&s&&(l.style.backgroundColor=s)},deselectAll(){this.listingEls.length&&this.listingEls.forEach(a=>{const t=a;this.deselectPair(a,t.marker??null,t.listingIconEl??null,t.fillColor??null)})}});export{C 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.