1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/chunks/Vue2LeafletGoogleMutant.BdXQmK9f.js","js/chunks/leaflet-src.AakZhDIQ.js","js/chunks/isSymbol.BLaXQ2a0.js","js/chunks/_plugin-vue2_normalizer.BQU9Qu9_.js","js/chunks/utils.BrBZJDMK.js","js/chunks/Vue2LeafletMapKit.C606ouYf.js","js/chunks/Vue2LeafletBaidu.DbLWl9y1.js","js/chunks/Leaflet.Baidu.CquO2I09.js"])))=>i.map(i=>d[i]); 2import{_ as s}from"./lazy-module.BNVi-SRU.js";/* empty css *//* empty css */import{L as a}from"./leaflet-src.AakZhDIQ.js";import{i as c}from"./isEmpty.B_3nBQWc.js";import{l as m}from"./leaflet-gesture-handling.min.DQlwZ9Xh.js";import"./Leaflet.Baidu.CquO2I09.js";import{p as u}from"./polyline.DPeIHFBJ.js";import{n as l}from"./_plugin-vue2_normalizer.BQU9Qu9_.js";import{_ as g}from"./LPolyline.BJmENwEw.js";import _ from"./LTileLayer.DRNoE8Oa.js";import f from"./LControl.Dqy3mAss.js";import{_ as L}from"./LMarker.BzWrW0er.js";import b from"./LMap.ByN3QCvj.js";import{mapActions as y,mapState as v}from"./vuex.esm.browser.x78u0m_H.js";import h from"./index.CLF_idfG.js";import"./isSymbol.BLaXQ2a0.js";import"./isTypedArray.zo2S5czj.js";import"./get.BDAykb6R.js";import"./_Set.H2_E_Qt-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"v3.265.0"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a186d000-b0db-40a5-832f-f5b44d29d400",t._sentryDebugIdIdentifier="sentry-dbid-a186d000-b0db-40a5-832f-f5b44d29d400")}catch{}})();const M=()=>s(()=>import("./Vue2LeafletGoogleMutant.BdXQmK9f.js"),__vite__mapDeps([0,1,2,3,4])),x=()=>s(()=>import("./Vue2LeafletMapKit.C606ouYf.js"),__vite__mapDeps([5,1,2,3,4])),E=()=>s(()=>import("./Vue2LeafletBaidu.DbLWl9y1.js"),__vite__mapDeps([6,7,1,2,3,4])),w=[7.8831755,98.3448268];let r;const k={name:"LeafletMap",props:{latLng:{},errorMessage:{},zoom:{default:14},provider:{},baseMapUrl:{default:"https://cartodb-basemaps-{s}.global.ssl.fastly.net/rastertiles/voyager_labels_under/{z}/{x}/{y}{r}.png"},polylineDecode:{default:void 0},bounds:{default:void 0},endLatLng:{default:[]},controllerPosition:{default:"topright"},canDrag:{default:!0},satelliteText:{default:"Satellite"},canGestureHandling:{default:!0}},computed:{crs(){return this.provider===4?a.CRS.EPSGB3857:a.CRS.EPSG3857},maxZoom(){return this.provider===4?18:19},polyLineEncode(){return this.polylineDecode?u.decode(this.polylineDecode):[]}},components:{LMap:b,LMarker:L,LControl:f,LTileLayer:_,LPolyline:g,"v-tilelayer-googlemutant":M,"v-tilelayer-map-kit":x,"v-tilelayer-baidu":E},watch:{latLng:{immediate:!0,handler:function(t,e){if(t!==e&&typeof t<"u"){const[o,n]=t;if(this.markerPoint=[o,n],this.isFirstLoad||(this.center=a.latLng(o,n),this.isFirstLoad=!0),this.mapObject!==null){const i=this.mapObject.getZoom();this.mapObject.setView(new a.LatLng(o,n),i||10)}}}}},data(){const t=this.getLatLng(),[e,o]=t,n=a.latLng(e,o),i=t,p=a.latLngBounds(a.latLng(-89.98155760646617,-180),a.latLng(89.99346179538875,180));return a.Map.addInitHook("addHandler","gestureHandling",m.GestureHandling),{mapObject:null,options:{gestureHandling:this.canGestureHandling},maxBounds:p,center:n,markerPoint:i,url:"https://cartodb-basemaps-{s}.global.ssl.fastly.net/rastertiles/voyager_labels_under/{z}/{x}/{y}{r}.png",icon:a.icon({iconUrl:"/images/icon/map-marker.png",iconSize:[26,35],iconAnchor:[13,35]}),endLocationIcon:a.icon({iconUrl:"/images/icon/destination-map-marker.png",iconSize:[26,35],iconAnchor:[13,35]}),loading:!1,isFirstLoad:!1,localValue:[],timeout:null,shouldLoadGoogleMap:!1,isMobile:!1,googleMapApiKey:window.site.googleMapApi,locale:window.locale,googleMapOptions:{maxZoom:24,type:"roadmap"}}},methods:{getLatLng(){const{latLng:t}=this;return typeof t>"u"||c(t)?w:t},setMapMode(){this.googleMapOptions.type==="satellite"?this.googleMapOptions.type="roadmap":this.googleMapOptions.type="satellite",r&&r.setMapTypeId(this.googleMapOptions.type)},async onMapLoadSuccess(){this.mapObject=this.$refs.map.mapObject,this.shouldLoadGoogleMap=this.provider===1},onMapReady(){this.mapObject&&setTimeout(()=>
2{this.mapObject.invalidateSize()},1e3)},onGoogleMapLoad(t){r=t.target._mutant}}};var D=function(){var e=this,o=e._self._c;return o("div",[o("div",{staticClass:"map-inner"},[o("l-map",{ref:"map",attrs:{zoom:e.zoom,crs:e.crs,maxZoom:e.maxZoom,center:e.center,"max-bounds-viscosity":1,maxBounds:e.maxBounds,bounds:e.bounds,options:e.options},on:{"leaflet:load":e.onMapLoadSuccess,ready:e.onMapReady}},[e.shouldLoadGoogleMap?o("l-control",{staticClass:"leaflet-map-custom-control",class:{"mobile-group-btn":e.isMobile},attrs:{position:e.controllerPosition}},[o("div",{staticClass:"d-inline-block"},[o("div",{class:{"map-draw-button":!0,"":!0,"site-bg-color":e.googleMapOptions.type==="satellite"},on:{click:e.setMapMode}},[o("span",{staticClass:"i-satellite"},[e._v(e._s(e.satelliteText))])])])]):e._e(),o("l-marker",{attrs:{name:"centerLocation","lat-lng":e.markerPoint,draggable:e.canDrag,options:e.options,icon:e.icon}}),e.endLatLng.length>0?o("l-marker",{attrs:{name:"endLocation","lat-lng":e.endLatLng,options:e.options,icon:e.endLocationIcon}}):e._e(),e.polyLineEncode?o("l-polyline",{attrs:{latLngs:e.polyLineEncode}}):e._e(),e.shouldLoadGoogleMap?o("v-tilelayer-googlemutant",{attrs:{options:e.googleMapOptions,language:e.locale,apikey:e.googleMapApiKey},on:{load:e.onGoogleMapLoad}}):e._e(),e.provider===3?o("v-tilelayer-map-kit"):e._e(),e.provider===4?o("v-tilelayer-baidu"):e._e(),e.provider===2?o("l-tile-layer",{attrs:{url:e.baseMapUrl}}):e._e()],1)],1),e.errorMessage?o("div",{staticClass:"invalid-feedback",staticStyle:{display:"block"}},[e._v(" "+e._s(e.errorMessage)+" ")]):e._e()])},O=[],I=l(k,D,O,!1,null,"8bd336c8");const S=I.exports,d={baidu:4},G={[d.baidu]:"/js/baiduMapAPI-2.0-min.js"},P=[d.baidu],R={props:["controllerPosition","canDrag","satelliteText","canGestureHandling"],data(){return{}},components:{LeafletMap:S},computed:{...v("map",["latLng","zoom","isExternalFileReady","polylineDecode","bounds","endLatLng"]),provider(){return window.map_provider&&parseInt(window.map_provider)||1},baseMapUrl(){return window.map_basemaps_url}},methods:{...y("map",["setIsExternalFileReady"])},beforeCreate(){const t=this.$store;t&&t.state&&t.state.map||t.registerModule("map",h)},created(){P.includes(this.provider)?Vue.loadScript(G[this.provider]).then(()=>this.setIsExternalFileReady()):this.setIsExternalFileReady()}};var T=function(){var e=this,o=e._self._c;return o("div",{staticClass:"map"},[e.isExternalFileReady?o("Leaflet-map",{attrs:{latLng:e.latLng,zoom:e.zoom,provider:e.provider,bounds:e.bounds,polylineDecode:e.polylineDecode,baseMapUrl:e.baseMapUrl,endLatLng:e.endLatLng,"can-drag":e.canDrag,"controller-position":e.controllerPosition,"satellite-text":e.satelliteText,"can-gesture-handling":e.canGestureHandling}}):e._e()],1)},z=[],A=l(R,T,z,!1,null,null);const ae=A.exports;export{ae 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.