1import{d as l,e as p,s as u,J as y,i as d,j as g,k as m,o as f,b as _,w as j,a as h,bB as C}from"./Dgr1Q0vs.js";import{u as M}from"./D4QjmnGS.js";const S="https://services.arcgis.com/apTfC6SUmnNfnxuF/ArcGIS/rest/services/CIP_Polygons_Final_View/FeatureServer/1",w={key:0,role:"presentation"},P={ref:"mapEl",id:"map",class:"h-100"},b=l({__name:"CipMap",props:{cipNumber:{}},async setup(a){let o,s;const i=a,{data:t}=([o,s]=p(()=>u(`${S}/query`,{query:{where:`MasterCIPNumber=${i.cipNumber}`,f:"geojson"}},"$zaq7wPTRSy")),o=await o,s(),o);y(c);function c(){const{map:e}=M();e.on("load",async()=>{var n;if(!t.value)return;e.addSource("geojson-source",{type:"geojson",data:t.value}),e.addLayer({id:"geojson-fill",type:"fill",source:"geojson-source",filter:["any",["==",["geometry-type"],"Polygon"],["==",["geometry-type"],"MultiPolygon"]],paint:{"fill-color":"#054173","fill-opacity":.4}}),e.addLayer({id:"geojson-outline",type:"line",source:"geojson-source",filter:["any",["==",["geometry-type"],"Polygon"],["==",["geometry-type"],"MultiPolygon"],["==",["geometry-type"],"LineString"],["==",["geometry-type"],"MultiLineString"]],paint:{"line-color":"#054173","line-width":3}}),e.addLayer({id:"geojson-points",type:"circle",source:"geojson-source",filter:["any",["==",["geometry-type"],"Point"],["==",["geometry-type"],"MultiPoint"]],paint:{"circle-radius":6,"circle-color":"#f3624F","circle-stroke-width":1,"circle-stroke-color":"#054173"}});const r=await((n=e.getSource("geojson-source"))==null?void 0:n.getBounds());r&&e.fitBounds(r,{padding:100,zoom:15})})}return(e,r)=>m(t)?(f(),d("figure",w,[_(C,{"aspect-ratio":4/3},{default:j(()=>[h("div",P,null,512)]),_:1})])):g("",!0)}}),N=Object.assign(b,{__name:"FeatureCipMap"});export{N 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.