1import{aP as s}from"./store-DUosIV5A.js";import{o as x}from"./application-CegkUz9G.js";const d=x(({activeMapView:n,map:t,mapDefaultZoomLevel:o,satelliteView:i,setActiveMapView:r,terrainView:c})=>{const a=(e,m)=>{r(e),e=="satellite"?t.setMaxZoom(11):t.setMaxZoom(o),t.setStyle(`mapbox://styles/charitywater/${m}`)},l=e=>`no-underline cursor-pointer flex items-center justify-center ${e} ${e==n?"hidden":"active"}`;return s.jsxs("div",{className:"map-button-switcher toggle-buttons",children:[s.jsx("a",{className:l("terrain"),onClick:()=>a("terrain",c),children:s.jsx("span",{className:"inline-block"})}),s.jsx("a",{className:l("satellite"),onClick:()=>a("satellite",i),children:s.jsx("span",{className:"inline-block"})})]})});export{d as default}; 2//# sourceMappingURL=MapViewButtons-YgNVz4Om.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.