mixdashboards 1.0.73 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseComponent-CaCkjmmb.cjs +1 -0
- package/dist/{BaseComponent-CBagahPU.js → BaseComponent-NnwLq7Cf.js} +148 -122
- package/dist/{EChartComponentBase-cFfawl6h.js → EChartComponentBase-C3gcATBZ.js} +3 -3
- package/dist/{EChartComponentBase-dLE5F7Tt.cjs → EChartComponentBase-D7_ZiE7P.cjs} +1 -1
- package/dist/{EmergencyPlanPanel--jTGG89o.js → EmergencyPlanPanel-0EfbQlQm.js} +1 -1
- package/dist/{EmergencyPlanPanel-BJb-Bbxh.cjs → EmergencyPlanPanel-XDtQc5aN.cjs} +1 -1
- package/dist/{HistoryPlanDialog-C-QPdV4V.cjs → HistoryPlanDialog-fbBtPeVt.cjs} +1 -1
- package/dist/{HistoryPlanDialog-DerClU2U.js → HistoryPlanDialog-ihGqWXNI.js} +1 -1
- package/dist/{MarkerView-CtWJi5UZ.js → MarkerView-DDN8S7xE.js} +7 -7
- package/dist/{MonitoringMap-CNaGsq83.js → MonitoringMap-DysFrw3B.js} +2 -2
- package/dist/{MonitoringMap-B6RMbiIS.cjs → MonitoringMap-UT2OL3ca.cjs} +1 -1
- package/dist/{RoamController-DmBIwcAZ.js → RoamController-1rzpYesL.js} +1 -1
- package/dist/{UniverSheet-KI09RqKm.js → UniverSheet-CMWL98B8.js} +2 -2
- package/dist/{UniverSheet-CM-vvc23.cjs → UniverSheet-DeZ-y5mH.cjs} +1 -1
- package/dist/{VisualMapping-D-MA7S0X.js → VisualMapping-GwxHIgr-.js} +1 -1
- package/dist/{accelerationChart-HBCb2bRW.cjs → accelerationChart-BGjzOc4I.cjs} +1 -1
- package/dist/{accelerationChart-D7KNk5fI.js → accelerationChart-JNRxAqU5.js} +23 -23
- package/dist/{actionItem-Bx4mW0jP.cjs → actionItem-DDlL4pxR.cjs} +1 -1
- package/dist/{actionItem-BmNYzAXu.js → actionItem-DnrNafUu.js} +2 -2
- package/dist/{alarmLevelChart-Cvnw4z1w.cjs → alarmLevelChart-B4TglthF.cjs} +1 -1
- package/dist/{alarmLevelChart-DdSw2s7W.js → alarmLevelChart-D4ZPyGyd.js} +2 -2
- package/dist/{alertTable-CC3c8DFb.js → alertTable-IwL3PIbe.js} +2 -2
- package/dist/{alertTable-hH6HA9pY.cjs → alertTable-WmivR3n_.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-yDiavTpG.js → aliasObjectSelectorDemo-DCcqetww.js} +9 -9
- package/dist/{aliasObjectSelectorDemo-C7E_fnCf.cjs → aliasObjectSelectorDemo-zcElLG44.cjs} +1 -1
- package/dist/{annualRainfallChart-B9ar8vo8.js → annualRainfallChart-CNqrXKJZ.js} +3 -3
- package/dist/{annualRainfallChart-C6JLSPIf.cjs → annualRainfallChart-DspMrDxt.cjs} +1 -1
- package/dist/{aqi-DEiCVIVa.cjs → aqi-B1bcKY5p.cjs} +1 -1
- package/dist/{aqi-BNc5QCM3.js → aqi-CdGE9-CD.js} +10 -10
- package/dist/{aqiIndass-Bowic_Pc.cjs → aqiIndass-BZpPo1tj.cjs} +1 -1
- package/dist/{aqiIndass-CAGV8_Uf.js → aqiIndass-CuKfMaYn.js} +30 -30
- package/dist/{areaDeformCurve-CSpR060t.js → areaDeformCurve-Chn4CE8w.js} +4 -4
- package/dist/{areaDeformCurve-CVy23kV2.cjs → areaDeformCurve-bNNNS8Cb.cjs} +1 -1
- package/dist/{arrayCard-NqoQKcE9.cjs → arrayCard-BYZWRop3.cjs} +1 -1
- package/dist/{arrayCard-PPDb7U6X.js → arrayCard-CVVWnZDk.js} +2 -2
- package/dist/{audio-Bw-GaYe1.cjs → audio-BeYg08W5.cjs} +1 -1
- package/dist/{audio-BJPFIQIr.js → audio-YTfr7Lqf.js} +2 -2
- package/dist/{axisAlignTicks-BqVUa467.js → axisAlignTicks-Chqgi59U.js} +2 -2
- package/dist/bar-1K14ZPKy.cjs +2 -0
- package/dist/bar-YhAAV2al.js +309 -0
- package/dist/bmp-Uj7Bu61U.js +2080 -0
- package/dist/bmp-vWIH5Cu7.cjs +1 -0
- package/dist/{box-DIHVOqrV.js → box-C8RIfuID.js} +2 -2
- package/dist/{box-CKuGsh2k.cjs → box-Cdzw27uU.cjs} +1 -1
- package/dist/{chartConfigPanel-BVdVXbs6.cjs → chartConfigPanel-D3voTkdQ.cjs} +1 -1
- package/dist/{chartConfigPanel-D1rO6SGh.js → chartConfigPanel-DLa3heKy.js} +1 -1
- package/dist/{circleBar-CBLcp4Xi.js → circleBar-DUSP-iMF.js} +15 -15
- package/dist/{circleBar-BzXqA-Cz.cjs → circleBar-Dc_qd4gk.cjs} +1 -1
- package/dist/{clock-DmWyBpo-.cjs → clock-0USfNfTc.cjs} +1 -1
- package/dist/{clock-4AMfFDGC.js → clock-Dk1zjBcJ.js} +2 -2
- package/dist/clt-BCHpLoab.cjs +1 -0
- package/dist/clt-Ba9Ov5WY.js +296 -0
- package/dist/cmc-CdDCboSm.cjs +1 -0
- package/dist/{cmc-Cjb5w3om.js → cmc-CsVB4uz3.js} +71 -63
- package/dist/cmp-BPM8lMqg.cjs +6 -0
- package/dist/{cmp-COJzlQPa.js → cmp-D4ZO7mz7.js} +54 -55
- package/dist/{conclusionCard-C-TT6znN.cjs → conclusionCard-BVHHtpxH.cjs} +1 -1
- package/dist/{conclusionCard-BQUlLFde.js → conclusionCard-BYR-fH4f.js} +2 -2
- package/dist/{controlList-5D5UIDQL.js → controlList-DYV1wgUY.js} +2 -2
- package/dist/{controlList-CIwzKylK.cjs → controlList-DsEyes9v.cjs} +1 -1
- package/dist/{controlRecordList-Cp5mmEQ1.js → controlRecordList-CBGpB41d.js} +2 -2
- package/dist/{controlRecordList-uEQ3ohmB.cjs → controlRecordList-j0pBrQiU.cjs} +1 -1
- package/dist/{controlRecordListAPP-B5d4x_xH.cjs → controlRecordListAPP-BktJCkFK.cjs} +1 -1
- package/dist/{controlRecordListAPP-p_skbQVD.js → controlRecordListAPP-CSt8rFZX.js} +2 -2
- package/dist/{crd-Dfl2XKAx.cjs → crd-C8IqmHc6.cjs} +1 -1
- package/dist/{crd-8gRWMf2Y.js → crd-Di7EfiY1.js} +2 -2
- package/dist/{createSeriesData-E53TTCAt.js → createSeriesData-BUgbWEWK.js} +2 -2
- package/dist/{createSeriesDataSimply-Bsly4zZA.js → createSeriesDataSimply-C7bzYYow.js} +2 -2
- package/dist/{ctrBtn-BzmFxucy.js → ctrBtn-BzMHJHA9.js} +94 -89
- package/dist/ctrBtn-Cj-AqUKM.cjs +1 -0
- package/dist/ctrSet-CnDBng-I.cjs +1 -0
- package/dist/ctrSet-DMkuRDFI.js +234 -0
- package/dist/ctrSwitch-BRfl35Aw.cjs +1 -0
- package/dist/{ctrSwitch-6nMHbIE7.js → ctrSwitch-FJgD05b0.js} +94 -88
- package/dist/{cursorHelper-DE0KU4_J.js → cursorHelper-BFbblC6t.js} +1 -1
- package/dist/{customGraphicKeyframeAnimation-BJ_z0kB3.js → customGraphicKeyframeAnimation-veqkTlqy.js} +17 -17
- package/dist/{dataManagement-BZiSmktM.js → dataManagement-CQoqc9Rh.js} +2 -2
- package/dist/{dataManagement-sQpuBaDz.cjs → dataManagement-CXbeNggN.cjs} +1 -1
- package/dist/{dataReport-D9Q9c43B.cjs → dataReport-BkIDOCdC.cjs} +1 -1
- package/dist/{dataReport-CbJzXeCE.js → dataReport-l2SE8HZx.js} +2 -2
- package/dist/{dataSample-BXwc06Sb.js → dataSample-Czrba8EC.js} +1 -1
- package/dist/{dataTable-BJ4SVFbu.cjs → dataTable-BdttKfHG.cjs} +1 -1
- package/dist/{dataTable-BuBB0b-A.js → dataTable-jf6qXfJJ.js} +1 -1
- package/dist/{datetime-B66VgJL1.cjs → datetime-BH9orUUf.cjs} +1 -1
- package/dist/{datetime-DO03QrXz.js → datetime-eht4XkmD.js} +2 -2
- package/dist/{deepClusterSlipSurface-BqT55vkY.cjs → deepClusterSlipSurface-CF_MN7sO.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-DpSAXgFf.js → deepClusterSlipSurface-D2d52L50.js} +6 -6
- package/dist/{deepDataMatrix-CPrIOv5r.js → deepDataMatrix-DY1WmgGR.js} +7 -7
- package/dist/{deepDataMatrix-DZZaTMbD.cjs → deepDataMatrix-DqbCqz8d.cjs} +1 -1
- package/dist/{deepDisplacement3D-JlMej7-5.js → deepDisplacement3D-CuVVhd0X.js} +20 -21
- package/dist/{deepDisplacement3D-Cd9nwwPt.cjs → deepDisplacement3D-D3-KOmef.cjs} +60 -60
- package/dist/{deepDisplacementChart-CEaj2bUV.cjs → deepDisplacementChart-BwBojI9h.cjs} +1 -1
- package/dist/{deepDisplacementChart-CjlGpeHj.js → deepDisplacementChart-C_3eHTmR.js} +25 -25
- package/dist/{deepDisplacementChart-BiDt60xI.js → deepDisplacementChart-DFosjAQL.js} +4 -4
- package/dist/{deepDisplacementChart-CALM3gna.cjs → deepDisplacementChart-DzikjpBz.cjs} +1 -1
- package/dist/{deepDisplacementView-BpUw-b-i.js → deepDisplacementView-BNQaheci.js} +3 -3
- package/dist/{deepDisplacementView-CoSNzN1q.cjs → deepDisplacementView-gJdi6U9B.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DfZq7kLx.js → deepNodeTemperatureChart-C5d-tyOA.js} +22 -22
- package/dist/{deepNodeTemperatureChart-DPN0rYir.cjs → deepNodeTemperatureChart-oMknBT7e.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Ca01hah9.js → deepTangentAngleChart-C35d0nBR.js} +18 -18
- package/dist/{deepTangentAngleChart-Dg9PJspK.cjs → deepTangentAngleChart-C7b7sEab.cjs} +1 -1
- package/dist/{deepTemperatureField-BqDB97SW.cjs → deepTemperatureField-BnWHpVPm.cjs} +1 -1
- package/dist/{deepTemperatureField-CYBTjhEp.js → deepTemperatureField-DbGy0vHS.js} +25 -25
- package/dist/{deepTrendChart-B5BAHTeY.cjs → deepTrendChart-D676owsq.cjs} +1 -1
- package/dist/{deepTrendChart-DBjxV7_A.js → deepTrendChart-DdCYjiWZ.js} +18 -18
- package/dist/{deviceOnlineStatus-1eoHCl_-.js → deviceOnlineStatus-BH-2-UBD.js} +2 -2
- package/dist/{deviceOnlineStatus-DHzaAzCp.cjs → deviceOnlineStatus-DSuaeFZj.cjs} +1 -1
- package/dist/{deviceStatus-90rQa1uj.js → deviceStatus-CxjbfqGK.js} +15 -15
- package/dist/{deviceStatus-4BMy4qBD.cjs → deviceStatus-ySE9suGE.cjs} +1 -1
- package/dist/{displacementDataTable-BArwj-xp.js → displacementDataTable-CAYYafN7.js} +17 -17
- package/dist/{displacementDataTable-BLWjiaRQ.cjs → displacementDataTable-DwutxypE.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-CxOPJVlD.js → displacementTrajectoryChart-ClUAsle_.js} +14 -14
- package/dist/{displacementTrajectoryChart-DfJMOCFJ.cjs → displacementTrajectoryChart-zya-qu9n.cjs} +1 -1
- package/dist/{displacementTrendChart-Cuxa5iTp.cjs → displacementTrendChart-DZj52qRD.cjs} +1 -1
- package/dist/{displacementTrendChart-4E6cDsX8.js → displacementTrendChart-xqe9LMp8.js} +17 -17
- package/dist/{dxf-BgklkksV.cjs → dxf-Cmr9xmL0.cjs} +1 -1
- package/dist/{dxf-BogwbJID.js → dxf-tZgpovsn.js} +2 -2
- package/dist/{dzc-CApfzriC.cjs → dzc-BwCEpLKp.cjs} +1 -1
- package/dist/{dzc-D7tTBLaA.js → dzc-C0VMyvsH.js} +9 -9
- package/dist/{echarts-BVht3HHb.js → echarts-Bp7QN4X6.js} +90 -90
- package/dist/{emergencyPlan-BuFz4XFc.cjs → emergencyPlan-CQtYRB5n.cjs} +1 -1
- package/dist/{emergencyPlan-CjbuX-N5.js → emergencyPlan-j1icRflR.js} +3 -3
- package/dist/{evn-DTPm72ZM.js → evn-B2F6pbqY.js} +2 -2
- package/dist/{evn-BcSenXF3.cjs → evn-B6WNZ0pv.cjs} +1 -1
- package/dist/{evolutionChart-D1dVKWOt.js → evolutionChart-C1rPjVsB.js} +5 -5
- package/dist/{evolutionChart-CrwR8i40.cjs → evolutionChart-q9UtSs9r.cjs} +1 -1
- package/dist/{fileViewer-BNHwlZRa.js → fileViewer-Bj4FYg5G.js} +13 -13
- package/dist/{fileViewer-BUuST3Rp.cjs → fileViewer-ZO55zvWU.cjs} +1 -1
- package/dist/{filterBar-CRJinh5K.js → filterBar-CIYpcc9y.js} +2 -2
- package/dist/{filterBar-BJzjPFFg.cjs → filterBar-D7js_Q7g.cjs} +1 -1
- package/dist/{fireCombustionCurve-BGdJ1ybj.cjs → fireCombustionCurve-CiVXjt9E.cjs} +1 -1
- package/dist/{fireCombustionCurve-BZ6qJ1kq.js → fireCombustionCurve-DEHjb7Lp.js} +3 -3
- package/dist/{fireFilterBar-KvvbsCsZ.js → fireFilterBar-BzgnlY5d.js} +2 -2
- package/dist/{fireFilterBar-DZejT0oL.cjs → fireFilterBar-CkQU9Yaf.cjs} +1 -1
- package/dist/{fireHistoryTable-80ygqnOG.js → fireHistoryTable-BoAArvjx.js} +2 -2
- package/dist/{fireHistoryTable-CMSGKb3w.cjs → fireHistoryTable-JCY4nLos.cjs} +1 -1
- package/dist/gag-CrUeBa30.cjs +1 -0
- package/dist/gag-DCGVulGC.js +168 -0
- package/dist/{gasStationList-DjJtXnqL.cjs → gasStationList-CN2y3zri.cjs} +1 -1
- package/dist/{gasStationList-DM-laJsi.js → gasStationList-CifrfkH0.js} +3 -3
- package/dist/{geo3dViewer-CL_89mQf.cjs → geo3dViewer-BSAjBg2m.cjs} +1 -1
- package/dist/{geo3dViewer-FhmMIvMJ.js → geo3dViewer-Du775tJ7.js} +3 -3
- package/dist/{glbModel-B0nWYYJQ.js → glbModel-2uTNL367.js} +2 -2
- package/dist/{glbModel-DakMJal6.cjs → glbModel-Cm1M6hko.cjs} +1 -1
- package/dist/{globalObjectSelector-Gv4srHhp.js → globalObjectSelector-CEpO2o2w.js} +1 -1
- package/dist/{globalObjectSelector-jNzZxdnL.cjs → globalObjectSelector-W_YToM6x.cjs} +1 -1
- package/dist/{gnssFilterBar-kEIW7Tjs.cjs → gnssFilterBar-BSHEfiyz.cjs} +1 -1
- package/dist/{gnssFilterBar-C4rpyNw3.js → gnssFilterBar-DZYOL5nC.js} +2 -2
- package/dist/{gnssHistoryTable-DRKlP8-b.cjs → gnssHistoryTable-Ct98Vz6i.cjs} +1 -1
- package/dist/{gnssHistoryTable-CyMwQJ7_.js → gnssHistoryTable-naChmXHT.js} +2 -2
- package/dist/{gnssMapView-DpExCi0x.cjs → gnssMapView-CCW4_-Sn.cjs} +2 -2
- package/dist/{gnssMapView-EVufCGrW.js → gnssMapView-DouWOPLF.js} +6 -6
- package/dist/{gnssSectionProfile-CaJwF9wp.js → gnssSectionProfile-Be-THvQP.js} +4 -4
- package/dist/{gnssSectionProfile-DdcOMdNC.cjs → gnssSectionProfile-hzXQ4KzJ.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-y11Y8k2-.cjs → gnssTimeSeriesChart-CbMxKxjG.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-iffDvMNx.js → gnssTimeSeriesChart-DoMBz4zf.js} +2 -2
- package/dist/{gnssXYTrajectory-DGBGGDwi.cjs → gnssXYTrajectory-BNwqQna4.cjs} +1 -1
- package/dist/{gnssXYTrajectory-C_1fuLWn.js → gnssXYTrajectory-Bg2B89Vw.js} +2 -2
- package/dist/{grd-C4hCrpvH.cjs → grd-C-x23C0E.cjs} +1 -1
- package/dist/{grd-FfuMQJb7.js → grd-XTVPofQw.js} +17 -17
- package/dist/{grdIndass-BTbZmPLZ.js → grdIndass-CYawTr5K.js} +2 -2
- package/dist/{grdIndass-CyuRKD5H.cjs → grdIndass-h7STZwba.cjs} +1 -1
- package/dist/{grg-CcnI5kRY.js → grg-BZPHOdr_.js} +16 -16
- package/dist/{grg-Cuxa17d6.cjs → grg-DMRsgNoC.cjs} +1 -1
- package/dist/{gridview-CKjBuTRq.cjs → gridview-BAqXV-TI.cjs} +1 -1
- package/dist/{gridview-ffVc5Wvg.js → gridview-C_Lqcw3n.js} +2 -2
- package/dist/{groundwaterFilterBar-DaPR-kbl.js → groundwaterFilterBar-Dq216QFO.js} +2 -2
- package/dist/{groundwaterFilterBar-D3l7GLVY.cjs → groundwaterFilterBar-RcVBt_vt.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DoSx7WWp.js → groundwaterProfileChart-7LN3wfLM.js} +3 -3
- package/dist/{groundwaterProfileChart-BxJKIPXF.cjs → groundwaterProfileChart-D31MpfdN.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-Bp5MxM9k.cjs → groundwaterTimeCurve-C65gdinn.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-D-SdVYeq.js → groundwaterTimeCurve-CJgvt43Z.js} +3 -3
- package/dist/{groupCard-COMEkzIb.js → groupCard-BpjcijZW.js} +2 -2
- package/dist/{groupCard-BzUQ8xY0.cjs → groupCard-DNOawK4_.cjs} +1 -1
- package/dist/{headerBar-ouXO8bzC.js → headerBar-Bnv8ylmr.js} +2 -2
- package/dist/{headerBar-iFe0YQKE.cjs → headerBar-CNWKR951.cjs} +1 -1
- package/dist/{history-BZ869y2d.js → history-DdkBOj8L.js} +24 -24
- package/dist/{history-MxYUUwkm.cjs → history-xZTq1lUB.cjs} +1 -1
- package/dist/index-BzWbqJIl.cjs +612 -0
- package/dist/index-CJgyJTvc.cjs +11 -0
- package/dist/{index-DwPJu6XM.js → index-D5BukPPY.js} +1805 -1642
- package/dist/{index-ButoLLAe.js → index-eIsZnzkc.js} +2753 -2122
- package/dist/{insarDeformChart-5BhCUq8L.js → insarDeformChart-BKgJHbFe.js} +2 -2
- package/dist/{insarDeformChart-Ca3AMsBk.cjs → insarDeformChart-DIvxdDkN.cjs} +1 -1
- package/dist/{insarImageViewer-DWPsoHz6.cjs → insarImageViewer-Bray3mKg.cjs} +1 -1
- package/dist/{insarImageViewer-DHNxmLpa.js → insarImageViewer-qI5GBqkU.js} +2 -2
- package/dist/{install-FDYiy_gL.js → install-B_v5XJLG.js} +5 -5
- package/dist/{install-9_V0b6vf.js → install-BfNaEf5I.js} +24 -24
- package/dist/{install-B0x4IqQr.js → install-By9bYCXw.js} +11 -11
- package/dist/{install-hfre7yvV.js → install-CEl1AYgZ.js} +2 -2
- package/dist/{install-BzdOSCzO.js → install-CIdzgJ44.js} +109 -109
- package/dist/{install-oGjJ0_bF.js → install-CJ_UX-RT.js} +44 -44
- package/dist/{install-BifpoHNI.js → install-CY89Nrxl.js} +5 -5
- package/dist/{install-BUu5ESB7.js → install-Cmw0VV-B.js} +72 -72
- package/dist/{install-MS3ZY7fF.js → install-CqrIgcb1.js} +7 -7
- package/dist/{install-D1QM80AD.js → install-DNDCMXB3.js} +2 -2
- package/dist/install-DbAuuRVv.js +8 -0
- package/dist/{install-CBde4hAM.js → install-DdM8j5Ll.js} +1 -1
- package/dist/{install-B2TChEcT.js → install-DwcX1eNi.js} +4 -4
- package/dist/{install-C_3uGWLu.js → install-FXyLnlJE.js} +9 -9
- package/dist/{install-C9Cdzkc6.js → install-UooD2LwU.js} +29 -29
- package/dist/{install-Cx1i_m0k.js → install-ZJfH__Vo.js} +11 -11
- package/dist/{install-8XfFtnlL.js → install-uPZUxWT9.js} +19 -19
- package/dist/{installCanvasRenderer-CLT2hquJ.js → installCanvasRenderer-oDYkyVFy.js} +4 -4
- package/dist/{installMarkArea-Cdg4iciO.js → installMarkArea-DaDitBR7.js} +15 -15
- package/dist/{installMarkLine-BgE0YACE.js → installMarkLine-CHCnywAM.js} +10 -10
- package/dist/{installSimple-BWTCwMdY.js → installSimple-CB2Y4Ri7.js} +3 -3
- package/dist/{kds-Dpf_3WWj.cjs → kds-BibvGW1n.cjs} +1 -1
- package/dist/{kds-BYZC4pIM.js → kds-C1Chb0fa.js} +30 -30
- package/dist/{kpiCard-CStPtl-c.js → kpiCard-KuMZjN55.js} +2 -2
- package/dist/{kpiCard-OLJgA48-.cjs → kpiCard-tnfcEXOn.cjs} +1 -1
- package/dist/{labelHelper-Cd8oB-sZ.js → labelHelper-DccEpjmd.js} +1 -1
- package/dist/{landslideMap-BUq0x7rd.js → landslideMap-B4vzymkZ.js} +15 -15
- package/dist/{landslideMap-JTdoQjW-.cjs → landslideMap-DlMSDibx.cjs} +1 -1
- package/dist/{landslideWarning-VAn9XGUj.js → landslideWarning-BYlaEzUr.js} +5 -5
- package/dist/{landslideWarning-ZA5LCsIr.cjs → landslideWarning-DtOMb7U_.cjs} +1 -1
- package/dist/{layerTabs-CAJ6f-2W.js → layerTabs-BG0gTvo8.js} +2 -2
- package/dist/{layerTabs-CdhowHB1.cjs → layerTabs-DQm_b2aH.cjs} +1 -1
- package/dist/{leaflet-src-DNO2-OsP.js → leaflet-src-DVXepwmU.js} +1 -1
- package/dist/{leaflet-src-CxFQ_Cn7.cjs → leaflet-src-qPfpknMO.cjs} +1 -1
- package/dist/{lerc-qU4WKXeS.cjs → lerc-CITZZDb7.cjs} +1 -1
- package/dist/{lerc-bF2jqjoV.js → lerc-Z6kWrF7V.js} +2 -2
- package/dist/{lin-BHI2KgyW.cjs → lin-CW8Q8u-z.cjs} +1 -1
- package/dist/{lin-DbQw7wZw.js → lin-zJYjIE2f.js} +11 -11
- package/dist/{linIndass-Cd9Hjzs_.js → linIndass-27mWriLs.js} +16 -16
- package/dist/{linIndass-CIrObeZT.cjs → linIndass-CQaikC7I.cjs} +1 -1
- package/dist/{lst-C3C2m1v_.js → lst-BqXNkXrQ.js} +2 -2
- package/dist/{lst-BRsEe-Hq.cjs → lst-Cu-ohx2m.cjs} +1 -1
- package/dist/{manualEntry-B8TDMcDg.js → manualEntry-BPEmSok7.js} +2 -2
- package/dist/{manualEntry-C3_WtYz8.cjs → manualEntry-zj6TEXL7.cjs} +1 -1
- package/dist/{mapBackground-BrVIQUcT.js → mapBackground-BhcSOZ_h.js} +3 -3
- package/dist/{mapBackground-Du7R_ICY.cjs → mapBackground-CRI873EC.cjs} +1 -1
- package/dist/{mappingList-BpJUawmv.js → mappingList-CvG8EIIC.js} +2 -2
- package/dist/{mappingList-C5OZ8oUx.cjs → mappingList-DGgPl4t4.cjs} +1 -1
- package/dist/{markdownViewer-CoRrvdY7.js → markdownViewer-D9JqGyeI.js} +6 -6
- package/dist/{markdownViewer-D96bwxEt.cjs → markdownViewer-DvbUv7kn.cjs} +1 -1
- package/dist/mix-control-modal-DaRWnX3S.js +160 -0
- package/dist/mix-control-modal-DpAs-GHi.cjs +1 -0
- package/dist/{mixGrid-Hj0OJjkg.cjs → mixGrid-CHne1dXO.cjs} +1 -1
- package/dist/{mixGrid-CtJWul6c.js → mixGrid-FBiMFT4V.js} +4 -4
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/mixiotObjectListApi-BwIQvSS-.js +67 -0
- package/dist/mixiotObjectListApi-ClirV2tM.cjs +1 -0
- package/dist/{mjpegCamera-Dc4IsJA6.js → mjpegCamera-D2quqZNc.js} +2 -2
- package/dist/{mjpegCamera-BY7pmbDc.cjs → mjpegCamera-D32gJ5oN.cjs} +1 -1
- package/dist/{monitorAlert-DVNvJyTy.cjs → monitorAlert-CxC81qAu.cjs} +1 -1
- package/dist/{monitorAlert-F8QFOchR.js → monitorAlert-D4qszzHh.js} +12 -12
- package/dist/{monitorData-AkPbhJ9q.cjs → monitorData-CVkL2ukF.cjs} +1 -1
- package/dist/{monitorData-BzqNIdrW.js → monitorData-DnWDsgTT.js} +13 -13
- package/dist/{monitorSpeedChart-348U37LW.js → monitorSpeedChart-CHpQsrDt.js} +3 -3
- package/dist/{monitorSpeedChart-DVH1xihw.cjs → monitorSpeedChart-CKxwWE0i.cjs} +1 -1
- package/dist/{mxa-CkJjCHA-.js → mxa-Cbnwonqc.js} +7 -7
- package/dist/{mxa-DShU528J.cjs → mxa-UU7rQDd8.cjs} +1 -1
- package/dist/{myValue-CEfp19i2.js → myValue-DBxx1jtk.js} +2 -2
- package/dist/{myValue-BCeycpdO.cjs → myValue-DzARZpdg.cjs} +1 -1
- package/dist/{myValueList-CAPOW8TK.cjs → myValueList-BVbeDsWn.cjs} +1 -1
- package/dist/{myValueList-y3GR4AX2.js → myValueList-BbtPVr5y.js} +2 -2
- package/dist/{objectList-D16yLbzD.js → objectList-Cpu0yqsK.js} +4 -4
- package/dist/{objectList-4rYQk5uq.cjs → objectList-D5E8PU66.cjs} +1 -1
- package/dist/objectListAPP-CYxy9UjL.js +2247 -0
- package/dist/objectListAPP-Cr4uoJuN.cjs +1 -0
- package/dist/{photo-D67wLRkY.cjs → photo-BRMACjXO.cjs} +1 -1
- package/dist/{photo-BV6rkbWO.js → photo-DPOhq559.js} +2 -2
- package/dist/{pie-BeRwVkTk.cjs → pie-B7HO9F24.cjs} +1 -1
- package/dist/{pie-bNKhq6ak.js → pie-CUqy6VGE.js} +10 -10
- package/dist/{placeholder-zByzfWaH.cjs → placeholder-D-BpaT59.cjs} +1 -1
- package/dist/{placeholder-_iK4rVyU.js → placeholder-DsyLsZM5.js} +1 -1
- package/dist/{points-DkG9FRF9.js → points-Cddz0rX-.js} +15 -15
- package/dist/{pressBtn-BjqYIPC-.cjs → pressBtn-DZz7PZ7o.cjs} +1 -1
- package/dist/{pressBtn-B-rZPXK2.js → pressBtn-IefW25bT.js} +138 -108
- package/dist/{processTable-s_y8uups.js → processTable-Bm2HnUrZ.js} +2 -2
- package/dist/{processTable-ByPlSKRJ.cjs → processTable-kVFr2ntb.cjs} +1 -1
- package/dist/{progressBar-CRdA7oJT.cjs → progressBar-00yP_jc2.cjs} +1 -1
- package/dist/{progressBar-DskxZk1P.js → progressBar-C7RKpdcE.js} +37 -29
- package/dist/{progressCircle-BE_Am-AP.js → progressCircle-BBkwMkI0.js} +47 -39
- package/dist/{progressCircle-CHe-12Hb.cjs → progressCircle-CzqibMlZ.cjs} +1 -1
- package/dist/{qrcode-D8cFyUpL.cjs → qrcode-4NUAsx0h.cjs} +1 -1
- package/dist/{qrcode-Dgth6KwU.js → qrcode-DaHlY7Vv.js} +2 -2
- package/dist/raceBar-BVsHg94d.cjs +2 -0
- package/dist/{raceBar-DV-3KFg2.js → raceBar-WhOgwnlP.js} +116 -120
- package/dist/{rad-BhsfF0XI.js → rad-BlEn2Yx1.js} +6 -6
- package/dist/{rad-BerkC70H.cjs → rad-sMtJPs8L.cjs} +1 -1
- package/dist/{radarMapViewer-C2dde8EN.js → radarMapViewer-C1_FFYFi.js} +2 -2
- package/dist/{radarMapViewer-HWzvBTzT.cjs → radarMapViewer-CzhHFpRX.cjs} +1 -1
- package/dist/{rainfallFilterBar-CiT1mvYh.js → rainfallFilterBar-Bt2TbXV6.js} +2 -2
- package/dist/{rainfallFilterBar-kuAQO0M-.cjs → rainfallFilterBar-F7DU_nqK.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BlOnCq2M.js → rainfallTimeCurve-C5tBf1lx.js} +3 -3
- package/dist/{rainfallTimeCurve-7uHaSkuE.cjs → rainfallTimeCurve-DaXSW7dI.cjs} +1 -1
- package/dist/{rangeLin-BvKd8kEv.js → rangeLin-Bral8Ev4.js} +16 -16
- package/dist/{rangeLin-BQeWFL_E.cjs → rangeLin-Cr4NRYc9.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-BUnD3JjE.cjs → realtimeEvolutionMap-CCisvZz8.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-DZ6yniwl.js → realtimeEvolutionMap-xJwuPatp.js} +2 -2
- package/dist/{regionBar-mMaN5NEc.cjs → regionBar-C8myvRfQ.cjs} +1 -1
- package/dist/{regionBar-vp5D52Jd.js → regionBar-D1iKcs2-.js} +2 -2
- package/dist/{request-CMbwWTDF.js → request-C-rUicMg.js} +5 -5
- package/dist/{request-DegEaaCG.cjs → request-Cxljxwu9.cjs} +1 -1
- package/dist/{retainer1-Xvdlh-B_.js → retainer1-BvzeaTtU.js} +84 -76
- package/dist/retainer1-CC6TO-vq.cjs +1 -0
- package/dist/{retainer2-D3a-c_BA.js → retainer2-BeakFCgo.js} +101 -93
- package/dist/retainer2-CmdgkB1y.cjs +1 -0
- package/dist/{retainerRecordList-BJbPsJ4D.js → retainerRecordList-C7lDliOb.js} +2 -2
- package/dist/{retainerRecordList-Rqnoz6_6.cjs → retainerRecordList-C9xVt3Yk.cjs} +1 -1
- package/dist/retainerRecordListAPP-BRmG7UnF.cjs +1 -0
- package/dist/{retainerRecordListAPP-CNntGyA-.js → retainerRecordListAPP-Cjip5JHS.js} +44 -42
- package/dist/{ringTopN-BFKlXqGX.js → ringTopN-BaKY-79s.js} +5 -5
- package/dist/{ringTopN-CsouIsk1.cjs → ringTopN-Wfvu1-jE.cjs} +1 -1
- package/dist/{riskRegionTable-DttMvHe5.cjs → riskRegionTable-C7ee9wQX.cjs} +1 -1
- package/dist/{riskRegionTable-B6k4uM0_.js → riskRegionTable-ovBbwMl2.js} +2 -2
- package/dist/{sankey-CAuBQaYh.cjs → sankey-BmWOGLSZ.cjs} +1 -1
- package/dist/{sankey-DEQK7uU6.js → sankey-K5BLueeX.js} +7 -7
- package/dist/{sausage-xU3hOdxD.js → sausage-DTfIyvVP.js} +1 -1
- package/dist/{scd-qaap6hGW.cjs → scd-CCNgUI2Q.cjs} +1 -1
- package/dist/{scd-D5TicpCZ.js → scd-CMVoKjwE.js} +2 -2
- package/dist/{sectorHelper-DIlWFMnU.js → sectorHelper-Ba-1dnRr.js} +1 -1
- package/dist/{sideMenu-D-73DoYb.cjs → sideMenu-BbiMVHw1.cjs} +1 -1
- package/dist/{sideMenu-ByyrOOYh.js → sideMenu-L_dYXVgD.js} +2 -2
- package/dist/{slopeStability-CTN6Kpva.cjs → slopeStability-BWVxuRRV.cjs} +1 -1
- package/dist/{slopeStability-BtgMH3oW.js → slopeStability-WUcwG1vB.js} +22 -22
- package/dist/{speedCurve-C5NoQCjK.cjs → speedCurve-QTXe81e1.cjs} +1 -1
- package/dist/{speedCurve-CInn7NAC.js → speedCurve-uwPuIJp0.js} +4 -4
- package/dist/{stressFilterBar-D_QqOHna.js → stressFilterBar-CnFNp7BR.js} +2 -2
- package/dist/{stressFilterBar-Cpfbmllu.cjs → stressFilterBar-DcqWlqsx.cjs} +1 -1
- package/dist/{stressTimeCurve-Bp6Cevk1.cjs → stressTimeCurve-C-qycuZ2.cjs} +1 -1
- package/dist/{stressTimeCurve-1HXHUj-F.js → stressTimeCurve-C3r3LUBt.js} +3 -3
- package/dist/{swiper-D_y4Fj_D.js → swiper-JShIvM0E.js} +2 -2
- package/dist/{swiper-B8YZ2VQ2.cjs → swiper-wWrsPbDA.cjs} +1 -1
- package/dist/{terminalConfigList-CHbA4y-S.js → terminalConfigList-DVhEvcTB.js} +2 -2
- package/dist/{terminalConfigList-B39cEptG.cjs → terminalConfigList-nQqB1W5s.cjs} +1 -1
- package/dist/terminalList-BkMuHXZw.cjs +1 -0
- package/dist/{terminalList-oJFrGVtT.js → terminalList-wAz6t4Ib.js} +77 -77
- package/dist/terminalListAPP-CePxWgcL.cjs +1 -0
- package/dist/terminalListAPP-DuLN2OVq.js +1935 -0
- package/dist/{textbox-DPoyxB4u.cjs → textbox-BBi-Lg1Z.cjs} +1 -1
- package/dist/{textbox-D8nmoGjG.js → textbox-DxXuhIyj.js} +2 -2
- package/dist/{timeQueryBar-uUGotoTx.cjs → timeQueryBar-BCTeL04F.cjs} +1 -1
- package/dist/{timeQueryBar-DyC0iHq9.js → timeQueryBar-DtngkLJX.js} +1 -1
- package/dist/{timeSeries-U91gMDDQ.js → timeSeries-CrdyAYs2.js} +3 -3
- package/dist/{timeSeries-BhlqgEOq.cjs → timeSeries-DJZnExBA.cjs} +1 -1
- package/dist/{timeSeriesCurve-DOhIS88N.js → timeSeriesCurve-8_exdGlQ.js} +3 -3
- package/dist/{timeSeriesCurve-CiRMnZRD.cjs → timeSeriesCurve-8_n0JJyf.cjs} +1 -1
- package/dist/{toggleBtn-CuWwHFjD.cjs → toggleBtn-B6dJ5cAt.cjs} +1 -1
- package/dist/{toggleBtn-DE35dkxx.js → toggleBtn-DExYfMvi.js} +7 -7
- package/dist/{trajectoryConfigPanel-DAbF8oE9.cjs → trajectoryConfigPanel-B2fwoe-I.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-Ye7NY6rd.js → trajectoryConfigPanel-Ce1SoMtw.js} +1 -1
- package/dist/{trajectoryScatter-Dg99HzM3.cjs → trajectoryScatter-CVLEXMPO.cjs} +1 -1
- package/dist/{trajectoryScatter-DL7HUNJI.js → trajectoryScatter-h32teAQ0.js} +6 -6
- package/dist/{universalConfigPanel-CkyIDl_x.js → universalConfigPanel-CxbrIc2Z.js} +1 -1
- package/dist/{universalConfigPanel-1svBCvD9.cjs → universalConfigPanel-cRzJmx3l.cjs} +1 -1
- package/dist/{universalTable--dpnyNO2.js → universalTable-BssAi-QH.js} +2 -2
- package/dist/{universalTable-D8w7FQbl.cjs → universalTable-V604pFVr.cjs} +1 -1
- package/dist/{universalTransition-Bv7ibBUh.js → universalTransition-tYQs2a4D.js} +2 -2
- package/dist/{video-RGIZoUn6.cjs → video-B8JeGpBc.cjs} +1 -1
- package/dist/{video-BmMSRRa_.js → video-BjmIbrRS.js} +2 -2
- package/dist/{videoMonitor-Bo5T0MT_.cjs → videoMonitor-B6FzkJlS.cjs} +1 -1
- package/dist/{videoMonitor-uf6tt2E6.js → videoMonitor-CVkFwlZq.js} +4 -4
- package/dist/{vlu-D8l5zE_P.js → vlu-CHHDngO6.js} +2 -2
- package/dist/{vlu-DEo_h1qN.cjs → vlu-Dv1vt9r0.cjs} +1 -1
- package/dist/{warningOverview-A5AA_vCc.cjs → warningOverview-4M-WX3Ob.cjs} +1 -1
- package/dist/{warningOverview-CA0PikjV.js → warningOverview-DDOm2wwB.js} +3 -3
- package/dist/{weather-D20MGzuJ.cjs → weather-BGrOQFPM.cjs} +1 -1
- package/dist/{weather-DuseqeNF.js → weather-CETxcsJS.js} +2 -2
- package/dist/{windLin-D8AUL_dV.js → windLin-B3YXltBn.js} +10 -10
- package/dist/{windLin-BU6Q87dE.cjs → windLin-B6uEtUnB.cjs} +1 -1
- package/package.json +1 -1
- package/dist/BaseComponent-Chnv4fBT.cjs +0 -1
- package/dist/bar-C38h_mUA.js +0 -246
- package/dist/bar-Cru6WosS.cjs +0 -2
- package/dist/bmp-BXaEkkpa.cjs +0 -1
- package/dist/bmp-BnSOaFEr.js +0 -226
- package/dist/clt-CmPPtp9c.cjs +0 -1
- package/dist/clt-D5i_8-pq.js +0 -293
- package/dist/cmc-8jH3DGv9.cjs +0 -1
- package/dist/cmp-CpmGtNal.cjs +0 -6
- package/dist/composite-CbsUYl-u.js +0 -136
- package/dist/composite-Cf24lSyN.cjs +0 -1
- package/dist/composite-CsFgfxih.js +0 -323
- package/dist/composite-DLmzZNIj.cjs +0 -3
- package/dist/ctrBtn-OOgL9esv.cjs +0 -1
- package/dist/ctrSet-Btg2T9w6.js +0 -247
- package/dist/ctrSet-CifyJt05.cjs +0 -1
- package/dist/ctrSwitch-C8mwxLPe.cjs +0 -1
- package/dist/ele-cmp-icon-CEP91RUe.js +0 -5
- package/dist/ele-cmp-icon-yUlU6c_Q.cjs +0 -1
- package/dist/gag-1bvAZ5m6.cjs +0 -1
- package/dist/gag-D2obj7AF.js +0 -160
- package/dist/index-DVqMfQVc.cjs +0 -612
- package/dist/index-mAPVa0s4.cjs +0 -11
- package/dist/install-BBrAry2m.js +0 -8
- package/dist/install-BRjgycz_.cjs +0 -1
- package/dist/install-BamnGDPb.cjs +0 -1
- package/dist/install-D7znHb-b.js +0 -604
- package/dist/install-DWm3j_D3.js +0 -38
- package/dist/mix-control-modal-DwxwW65v.cjs +0 -1
- package/dist/mix-control-modal-Qg_mzyT_.js +0 -145
- package/dist/mixMap-CJzmC0IR.cjs +0 -1
- package/dist/mixMap-E36SDnEa.js +0 -258
- package/dist/mixModel-BMRxhvWn.cjs +0 -3
- package/dist/mixModel-_McJ6OuH.js +0 -251
- package/dist/mixPie-CMOkAe9p.js +0 -168
- package/dist/mixPie-MAKXeYVp.cjs +0 -2
- package/dist/mixiotObjectListApi-BaeBL318.js +0 -82
- package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +0 -1
- package/dist/no-image-icon-CPA7RKkF.cjs +0 -1
- package/dist/no-image-icon-n2ZlEjxS.js +0 -1864
- package/dist/objectListAPP-DCwTyqFp.js +0 -1864
- package/dist/objectListAPP-Db5beOAM.cjs +0 -1
- package/dist/raceBar-CeybrpCB.cjs +0 -4
- package/dist/retainer1-CF2Tr7Zt.cjs +0 -1
- package/dist/retainer2-BQVUhgcH.cjs +0 -1
- package/dist/retainerRecordListAPP-B4IDQK3C.cjs +0 -1
- package/dist/staticLine-BC-zj5yZ.cjs +0 -1
- package/dist/staticLine-CLqN4lpU.js +0 -362
- package/dist/terminalList-Vf-Dbybr.cjs +0 -1
- package/dist/terminalListAPP-CdBG8krw.cjs +0 -1
- package/dist/terminalListAPP-DWArp2D4.js +0 -1366
|
@@ -0,0 +1,2080 @@
|
|
|
1
|
+
var Mt = Object.defineProperty, xt = Object.defineProperties;
|
|
2
|
+
var Ct = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var at = Object.getOwnPropertySymbols;
|
|
4
|
+
var Bt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var st = (t, a, i) => a in t ? Mt(t, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[a] = i, rt = (t, a) => {
|
|
6
|
+
for (var i in a || (a = {}))
|
|
7
|
+
Bt.call(a, i) && st(t, i, a[i]);
|
|
8
|
+
if (at)
|
|
9
|
+
for (var i of at(a))
|
|
10
|
+
kt.call(a, i) && st(t, i, a[i]);
|
|
11
|
+
return t;
|
|
12
|
+
}, lt = (t, a) => xt(t, Ct(a));
|
|
13
|
+
var ut = (t, a, i) => new Promise((h, _) => {
|
|
14
|
+
var v = (e) => {
|
|
15
|
+
try {
|
|
16
|
+
r(i.next(e));
|
|
17
|
+
} catch (o) {
|
|
18
|
+
_(o);
|
|
19
|
+
}
|
|
20
|
+
}, n = (e) => {
|
|
21
|
+
try {
|
|
22
|
+
r(i.throw(e));
|
|
23
|
+
} catch (o) {
|
|
24
|
+
_(o);
|
|
25
|
+
}
|
|
26
|
+
}, r = (e) => e.done ? h(e.value) : Promise.resolve(e.value).then(v, n);
|
|
27
|
+
r((i = i.apply(t, a)).next());
|
|
28
|
+
});
|
|
29
|
+
import { ElIcon as St } from "element-plus/es";
|
|
30
|
+
import "element-plus/es/components/base/style/css";
|
|
31
|
+
import "element-plus/es/components/icon/style/css";
|
|
32
|
+
import { openBlock as D, createElementBlock as I, normalizeStyle as K, normalizeClass as Ot, createCommentVNode as $, renderSlot as q, defineComponent as Pt, getCurrentInstance as zt, computed as dt, reactive as Tt, ref as G, unref as L, createElementVNode as E, toDisplayString as N, createVNode as Q, withCtx as U, Fragment as Et, renderList as At, createBlock as Dt, withModifiers as It } from "vue";
|
|
33
|
+
import { B as Nt } from "./BaseComponent-NnwLq7Cf.js";
|
|
34
|
+
import { a as pt, _ as Rt } from "./index-D5BukPPY.js";
|
|
35
|
+
import { g as Zt } from "./titleStyle-BT5GlpAb.js";
|
|
36
|
+
import { Close as jt } from "@element-plus/icons-vue";
|
|
37
|
+
import { A as Lt, D as Ft } from "./ele-bmp-icon-Pdolk1J5.js";
|
|
38
|
+
const ct = 3.141592653589793 * 3e3 / 180, T = 3.141592653589793, ht = 6378245, mt = 0.006693421622965943;
|
|
39
|
+
function Ht(t, a) {
|
|
40
|
+
var i = Math.sqrt(t * t + a * a) + 2e-5 * Math.sin(a * ct), h = Math.atan2(a, t) + 3e-6 * Math.cos(t * ct), _ = i * Math.cos(h) + 65e-4, v = i * Math.sin(h) + 6e-3;
|
|
41
|
+
return [_, v];
|
|
42
|
+
}
|
|
43
|
+
function Wt(t, a) {
|
|
44
|
+
if (Xt(t, a))
|
|
45
|
+
return [t, a];
|
|
46
|
+
{
|
|
47
|
+
var i = Qt(t - 105, a - 35), h = Vt(t - 105, a - 35), _ = a / 180 * T, v = Math.sin(_);
|
|
48
|
+
v = 1 - mt * v * v;
|
|
49
|
+
var n = Math.sqrt(v);
|
|
50
|
+
i = i * 180 / (ht * (1 - mt) / (v * n) * T), h = h * 180 / (ht / n * Math.cos(_) * T);
|
|
51
|
+
const r = a + i;
|
|
52
|
+
return [t + h, r];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function Gt(t, a) {
|
|
56
|
+
const i = Wt(t, a);
|
|
57
|
+
return Ht(i[0], i[1]);
|
|
58
|
+
}
|
|
59
|
+
function Qt(t, a) {
|
|
60
|
+
var i = -100 + 2 * t + 3 * a + 0.2 * a * a + 0.1 * t * a + 0.2 * Math.sqrt(Math.abs(t));
|
|
61
|
+
return i += (20 * Math.sin(6 * t * T) + 20 * Math.sin(2 * t * T)) * 2 / 3, i += (20 * Math.sin(a * T) + 40 * Math.sin(a / 3 * T)) * 2 / 3, i += (160 * Math.sin(a / 12 * T) + 320 * Math.sin(a * T / 30)) * 2 / 3, i;
|
|
62
|
+
}
|
|
63
|
+
function Vt(t, a) {
|
|
64
|
+
var i = 300 + t + 2 * a + 0.1 * t * t + 0.1 * t * a + 0.1 * Math.sqrt(Math.abs(t));
|
|
65
|
+
return i += (20 * Math.sin(6 * t * T) + 20 * Math.sin(2 * t * T)) * 2 / 3, i += (20 * Math.sin(t * T) + 40 * Math.sin(t / 3 * T)) * 2 / 3, i += (150 * Math.sin(t / 12 * T) + 300 * Math.sin(t / 30 * T)) * 2 / 3, i;
|
|
66
|
+
}
|
|
67
|
+
function Xt(t, a) {
|
|
68
|
+
return t < 72.004 || t > 137.8347 || a < 0.8293 || a > 55.8271 || !1;
|
|
69
|
+
}
|
|
70
|
+
var Yt = {
|
|
71
|
+
"bm-map": [
|
|
72
|
+
"click",
|
|
73
|
+
"dblclick",
|
|
74
|
+
"rightclick",
|
|
75
|
+
"rightdblclick",
|
|
76
|
+
"maptypechange",
|
|
77
|
+
"mousemove",
|
|
78
|
+
"mouseover",
|
|
79
|
+
"mouseout",
|
|
80
|
+
"movestart",
|
|
81
|
+
"moving",
|
|
82
|
+
"moveend",
|
|
83
|
+
"zoomstart",
|
|
84
|
+
"zoomend",
|
|
85
|
+
"addoverlay",
|
|
86
|
+
"addcontrol",
|
|
87
|
+
"removecontrol",
|
|
88
|
+
"removeoverlay",
|
|
89
|
+
"clearoverlays",
|
|
90
|
+
"dragstart",
|
|
91
|
+
"dragging",
|
|
92
|
+
"dragend",
|
|
93
|
+
"addtilelayer",
|
|
94
|
+
"removetilelayer",
|
|
95
|
+
"load",
|
|
96
|
+
"resize",
|
|
97
|
+
"hotspotclick",
|
|
98
|
+
"hotspotover",
|
|
99
|
+
"hotspotout",
|
|
100
|
+
"tilesloaded",
|
|
101
|
+
"touchstart",
|
|
102
|
+
"touchmove",
|
|
103
|
+
"touchend",
|
|
104
|
+
"longpress"
|
|
105
|
+
],
|
|
106
|
+
"bm-geolocation": [
|
|
107
|
+
"locationSuccess",
|
|
108
|
+
"locationError"
|
|
109
|
+
],
|
|
110
|
+
"bm-overview-map": [
|
|
111
|
+
"viewchanged",
|
|
112
|
+
"viewchanging"
|
|
113
|
+
],
|
|
114
|
+
"bm-marker": [
|
|
115
|
+
"click",
|
|
116
|
+
"dblclick",
|
|
117
|
+
"mousedown",
|
|
118
|
+
"mouseup",
|
|
119
|
+
"mouseout",
|
|
120
|
+
"mouseover",
|
|
121
|
+
"remove",
|
|
122
|
+
"infowindowclose",
|
|
123
|
+
"infowindowopen",
|
|
124
|
+
"dragstart",
|
|
125
|
+
"dragging",
|
|
126
|
+
"dragend",
|
|
127
|
+
"rightclick"
|
|
128
|
+
],
|
|
129
|
+
"bm-polyline": [
|
|
130
|
+
"click",
|
|
131
|
+
"dblclick",
|
|
132
|
+
"mousedown",
|
|
133
|
+
"mouseup",
|
|
134
|
+
"mouseout",
|
|
135
|
+
"mouseover",
|
|
136
|
+
"remove",
|
|
137
|
+
"lineupdate"
|
|
138
|
+
],
|
|
139
|
+
"bm-polygon": [
|
|
140
|
+
"click",
|
|
141
|
+
"dblclick",
|
|
142
|
+
"mousedown",
|
|
143
|
+
"mouseup",
|
|
144
|
+
"mouseout",
|
|
145
|
+
"mouseover",
|
|
146
|
+
"remove",
|
|
147
|
+
"lineupdate"
|
|
148
|
+
],
|
|
149
|
+
"bm-circle": [
|
|
150
|
+
"click",
|
|
151
|
+
"dblclick",
|
|
152
|
+
"mousedown",
|
|
153
|
+
"mouseup",
|
|
154
|
+
"mouseout",
|
|
155
|
+
"mouseover",
|
|
156
|
+
"remove",
|
|
157
|
+
"lineupdate"
|
|
158
|
+
],
|
|
159
|
+
"bm-label": [
|
|
160
|
+
"click",
|
|
161
|
+
"dblclick",
|
|
162
|
+
"mousedown",
|
|
163
|
+
"mouseup",
|
|
164
|
+
"mouseout",
|
|
165
|
+
"mouseover",
|
|
166
|
+
"remove",
|
|
167
|
+
"rightclick"
|
|
168
|
+
],
|
|
169
|
+
"bm-info-window": [
|
|
170
|
+
"close",
|
|
171
|
+
"open",
|
|
172
|
+
"maximize",
|
|
173
|
+
"restore",
|
|
174
|
+
"clickclose"
|
|
175
|
+
],
|
|
176
|
+
"bm-ground": [
|
|
177
|
+
"click",
|
|
178
|
+
"dblclick"
|
|
179
|
+
],
|
|
180
|
+
"bm-autocomplete": [
|
|
181
|
+
"onconfirm",
|
|
182
|
+
"onhighlight"
|
|
183
|
+
],
|
|
184
|
+
"bm-point-collection": [
|
|
185
|
+
"click",
|
|
186
|
+
"mouseover",
|
|
187
|
+
"mouseout"
|
|
188
|
+
]
|
|
189
|
+
};
|
|
190
|
+
function yt(t, a) {
|
|
191
|
+
const i = a || Yt[this.$options.name];
|
|
192
|
+
i && i.forEach((h) => {
|
|
193
|
+
let v = h.slice(0, 2) === "on" ? h.slice(2) : h;
|
|
194
|
+
const n = this.$attrs["on" + v.replace(v[0], v[0].toUpperCase())];
|
|
195
|
+
n && t.addEventListener(h, n);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function tt(t, a = {}) {
|
|
199
|
+
const { lng: i, lat: h } = a;
|
|
200
|
+
return new t.Point(i, h);
|
|
201
|
+
}
|
|
202
|
+
function R(t, a = {}) {
|
|
203
|
+
const { width: i, height: h } = a;
|
|
204
|
+
return new t.Size(i, h);
|
|
205
|
+
}
|
|
206
|
+
function ft(t, a = {}) {
|
|
207
|
+
const { url: i, size: h, opts: _ = {} } = a;
|
|
208
|
+
let v = {
|
|
209
|
+
anchor: _.anchor && R(t, _.anchor),
|
|
210
|
+
imageSize: _.imageSize && R(t, _.imageSize),
|
|
211
|
+
imageOffset: _.imageOffset && R(t, _.imageOffset),
|
|
212
|
+
infoWindowAnchor: _.infoWindowAnchor && R(t, _.infoWindowAnchor),
|
|
213
|
+
printImageUrl: _.printImageUrl
|
|
214
|
+
};
|
|
215
|
+
return et(v), new t.Icon(i, R(t, h), v);
|
|
216
|
+
}
|
|
217
|
+
function Kt(t, a = {}) {
|
|
218
|
+
const { content: i, opts: h } = a;
|
|
219
|
+
let _ = {
|
|
220
|
+
offset: h.offset && R(t, h.offset),
|
|
221
|
+
position: h.position && tt(t, h.position),
|
|
222
|
+
enableMassClear: h.enableMassClear
|
|
223
|
+
};
|
|
224
|
+
return et(_), new t.Label(i, _);
|
|
225
|
+
}
|
|
226
|
+
const gt = (t) => Object.prototype.toString.call(t).slice(8, -1), et = (t) => {
|
|
227
|
+
Object.keys(t).forEach((a) => {
|
|
228
|
+
typeof t[a] == "undefined" && delete t[a];
|
|
229
|
+
});
|
|
230
|
+
};
|
|
231
|
+
let J = {
|
|
232
|
+
v: "3.0",
|
|
233
|
+
type: "API"
|
|
234
|
+
};
|
|
235
|
+
const Jt = (t = {}) => {
|
|
236
|
+
J = Object.assign(J, t), J.ak || console.error("请配置ak:百度地图开发者平台申请的密钥");
|
|
237
|
+
}, Z = () => J;
|
|
238
|
+
var H = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, it = { exports: {} };
|
|
239
|
+
function nt() {
|
|
240
|
+
}
|
|
241
|
+
nt.prototype = {
|
|
242
|
+
on: function(t, a, i) {
|
|
243
|
+
var h = this.e || (this.e = {});
|
|
244
|
+
return (h[t] || (h[t] = [])).push({
|
|
245
|
+
fn: a,
|
|
246
|
+
ctx: i
|
|
247
|
+
}), this;
|
|
248
|
+
},
|
|
249
|
+
once: function(t, a, i) {
|
|
250
|
+
var h = this;
|
|
251
|
+
function _() {
|
|
252
|
+
h.off(t, _), a.apply(i, arguments);
|
|
253
|
+
}
|
|
254
|
+
return _._ = a, this.on(t, _, i);
|
|
255
|
+
},
|
|
256
|
+
emit: function(t) {
|
|
257
|
+
var a = [].slice.call(arguments, 1), i = ((this.e || (this.e = {}))[t] || []).slice(), h = 0, _ = i.length;
|
|
258
|
+
for (h; h < _; h++)
|
|
259
|
+
i[h].fn.apply(i[h].ctx, a);
|
|
260
|
+
return this;
|
|
261
|
+
},
|
|
262
|
+
off: function(t, a) {
|
|
263
|
+
var i = this.e || (this.e = {}), h = i[t], _ = [];
|
|
264
|
+
if (h && a)
|
|
265
|
+
for (var v = 0, n = h.length; v < n; v++)
|
|
266
|
+
h[v].fn !== a && h[v].fn._ !== a && _.push(h[v]);
|
|
267
|
+
return _.length ? i[t] = _ : delete i[t], this;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
it.exports = nt;
|
|
271
|
+
it.exports.TinyEmitter = nt;
|
|
272
|
+
var qt = it.exports, V = new qt(), j = {
|
|
273
|
+
$on: (...t) => V.on(...t),
|
|
274
|
+
$once: (...t) => V.once(...t),
|
|
275
|
+
$off: (...t) => V.off(...t),
|
|
276
|
+
$emit: (...t) => V.emit(...t)
|
|
277
|
+
};
|
|
278
|
+
const vt = {
|
|
279
|
+
API: {
|
|
280
|
+
"2.0": {
|
|
281
|
+
setMapStyle: "setMapStyle",
|
|
282
|
+
NavigationControl: "NavigationControl"
|
|
283
|
+
},
|
|
284
|
+
"3.0": {
|
|
285
|
+
setMapStyle: "setMapStyleV2",
|
|
286
|
+
NavigationControl: "NavigationControl"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
WebGL: {
|
|
290
|
+
setMapStyle: "setMapStyleV2",
|
|
291
|
+
NavigationControl: "NavigationControl3D"
|
|
292
|
+
}
|
|
293
|
+
}, X = (t) => {
|
|
294
|
+
const a = Z();
|
|
295
|
+
return a.type == "WebGL" ? vt[a.type][t] : vt[a.type][a.v][t];
|
|
296
|
+
};
|
|
297
|
+
let _t;
|
|
298
|
+
new Promise((t) => {
|
|
299
|
+
_t = t;
|
|
300
|
+
});
|
|
301
|
+
var ot = (t, a) => {
|
|
302
|
+
const i = t.__vccOpts || t;
|
|
303
|
+
for (const [h, _] of a)
|
|
304
|
+
i[h] = _;
|
|
305
|
+
return i;
|
|
306
|
+
};
|
|
307
|
+
const Ut = {
|
|
308
|
+
name: "bm-map",
|
|
309
|
+
inheritAttrs: !1,
|
|
310
|
+
emits: ["ready", "init", "animationed"],
|
|
311
|
+
props: {
|
|
312
|
+
ak: {
|
|
313
|
+
type: String
|
|
314
|
+
},
|
|
315
|
+
v: {
|
|
316
|
+
type: String
|
|
317
|
+
},
|
|
318
|
+
type: {
|
|
319
|
+
type: String
|
|
320
|
+
},
|
|
321
|
+
center: {
|
|
322
|
+
type: [Object, String]
|
|
323
|
+
},
|
|
324
|
+
zoom: {
|
|
325
|
+
type: Number
|
|
326
|
+
},
|
|
327
|
+
minZoom: {
|
|
328
|
+
type: Number
|
|
329
|
+
},
|
|
330
|
+
maxZoom: {
|
|
331
|
+
type: Number
|
|
332
|
+
},
|
|
333
|
+
highResolution: {
|
|
334
|
+
type: Boolean,
|
|
335
|
+
default: !0
|
|
336
|
+
},
|
|
337
|
+
mapClick: {
|
|
338
|
+
type: Boolean,
|
|
339
|
+
default: !0
|
|
340
|
+
},
|
|
341
|
+
mapType: {
|
|
342
|
+
type: String
|
|
343
|
+
},
|
|
344
|
+
dragging: {
|
|
345
|
+
type: Boolean,
|
|
346
|
+
default: !0
|
|
347
|
+
},
|
|
348
|
+
scrollWheelZoom: {
|
|
349
|
+
type: Boolean,
|
|
350
|
+
default: !1
|
|
351
|
+
},
|
|
352
|
+
doubleClickZoom: {
|
|
353
|
+
type: Boolean,
|
|
354
|
+
default: !0
|
|
355
|
+
},
|
|
356
|
+
keyboard: {
|
|
357
|
+
type: Boolean,
|
|
358
|
+
default: !0
|
|
359
|
+
},
|
|
360
|
+
inertialDragging: {
|
|
361
|
+
type: Boolean,
|
|
362
|
+
default: !0
|
|
363
|
+
},
|
|
364
|
+
continuousZoom: {
|
|
365
|
+
type: Boolean,
|
|
366
|
+
default: !0
|
|
367
|
+
},
|
|
368
|
+
pinchToZoom: {
|
|
369
|
+
type: Boolean,
|
|
370
|
+
default: !0
|
|
371
|
+
},
|
|
372
|
+
autoResize: {
|
|
373
|
+
type: Boolean,
|
|
374
|
+
default: !0
|
|
375
|
+
},
|
|
376
|
+
theme: {
|
|
377
|
+
type: Array
|
|
378
|
+
},
|
|
379
|
+
mapStyle: {
|
|
380
|
+
type: Object
|
|
381
|
+
},
|
|
382
|
+
hasAnimation: {
|
|
383
|
+
type: Boolean,
|
|
384
|
+
default: !0
|
|
385
|
+
},
|
|
386
|
+
defaultAnimation: {
|
|
387
|
+
type: Boolean,
|
|
388
|
+
default: !0
|
|
389
|
+
},
|
|
390
|
+
preserveDrawingBuffer: {
|
|
391
|
+
type: Boolean,
|
|
392
|
+
default: !1
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
watch: {
|
|
396
|
+
center(t, a) {
|
|
397
|
+
const { map: i, zoom: h } = this;
|
|
398
|
+
gt(t) === "String" && t !== a && this.setCenterZoom(i, t, h);
|
|
399
|
+
},
|
|
400
|
+
"center.lng"(t, a) {
|
|
401
|
+
const { BMap: i, map: h, zoom: _, center: v } = this;
|
|
402
|
+
t !== a && t >= -180 && t <= 180 && this.setCenterZoom(h, new i.Point(t, v.lat), _);
|
|
403
|
+
},
|
|
404
|
+
"center.lat"(t, a) {
|
|
405
|
+
const { BMap: i, map: h, zoom: _, center: v } = this;
|
|
406
|
+
t !== a && t >= -74 && t <= 74 && this.setCenterZoom(h, new i.Point(v.lng, t), _);
|
|
407
|
+
},
|
|
408
|
+
zoom(t, a) {
|
|
409
|
+
const { map: i } = this;
|
|
410
|
+
t !== a && t >= 3 && t <= 19 && i.setZoom(t);
|
|
411
|
+
},
|
|
412
|
+
minZoom(t) {
|
|
413
|
+
const { map: a } = this;
|
|
414
|
+
a.setMinZoom(t);
|
|
415
|
+
},
|
|
416
|
+
maxZoom(t) {
|
|
417
|
+
const { map: a } = this;
|
|
418
|
+
a.setMaxZoom(t);
|
|
419
|
+
},
|
|
420
|
+
highResolution() {
|
|
421
|
+
this.reset();
|
|
422
|
+
},
|
|
423
|
+
mapClick() {
|
|
424
|
+
this.reset();
|
|
425
|
+
},
|
|
426
|
+
mapType(t) {
|
|
427
|
+
const { map: a } = this;
|
|
428
|
+
a.setMapType(window[t]);
|
|
429
|
+
},
|
|
430
|
+
dragging(t) {
|
|
431
|
+
const { map: a } = this;
|
|
432
|
+
t ? a.enableDragging() : a.disableDragging();
|
|
433
|
+
},
|
|
434
|
+
scrollWheelZoom(t) {
|
|
435
|
+
const { map: a } = this;
|
|
436
|
+
t ? a.enableScrollWheelZoom() : a.disableScrollWheelZoom();
|
|
437
|
+
},
|
|
438
|
+
doubleClickZoom(t) {
|
|
439
|
+
const { map: a } = this;
|
|
440
|
+
t ? a.enableDoubleClickZoom() : a.disableDoubleClickZoom();
|
|
441
|
+
},
|
|
442
|
+
keyboard(t) {
|
|
443
|
+
const { map: a } = this;
|
|
444
|
+
t ? a.enableKeyboard() : a.disableKeyboard();
|
|
445
|
+
},
|
|
446
|
+
inertialDragging(t) {
|
|
447
|
+
const { map: a } = this;
|
|
448
|
+
t ? a.enableInertialDragging() : a.disableInertialDragging();
|
|
449
|
+
},
|
|
450
|
+
continuousZoom(t) {
|
|
451
|
+
const { map: a } = this;
|
|
452
|
+
t ? a.enableContinuousZoom() : a.disableContinuousZoom();
|
|
453
|
+
},
|
|
454
|
+
pinchToZoom(t) {
|
|
455
|
+
const { map: a } = this;
|
|
456
|
+
t ? a.enablePinchToZoom() : a.disablePinchToZoom();
|
|
457
|
+
},
|
|
458
|
+
autoResize(t) {
|
|
459
|
+
const { map: a } = this;
|
|
460
|
+
t ? a.enableAutoResize() : a.disableAutoResize();
|
|
461
|
+
},
|
|
462
|
+
theme(t) {
|
|
463
|
+
const { map: a } = this;
|
|
464
|
+
a[X("setMapStyle")]({ styleJson: t });
|
|
465
|
+
},
|
|
466
|
+
mapStyle: {
|
|
467
|
+
handler(t) {
|
|
468
|
+
const { map: a, theme: i } = this;
|
|
469
|
+
!i && a[X("setMapStyle")](t);
|
|
470
|
+
},
|
|
471
|
+
deep: !0
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
methods: {
|
|
475
|
+
setMapOptions() {
|
|
476
|
+
const { map: t, minZoom: a, maxZoom: i, mapType: h, dragging: _, scrollWheelZoom: v, doubleClickZoom: n, keyboard: r, inertialDragging: e, continuousZoom: o, pinchToZoom: d, autoResize: c } = this;
|
|
477
|
+
a && t.setMinZoom(a), i && t.setMaxZoom(i), h && t.setMapType(window[h]), _ ? t.enableDragging() : t.disableDragging(), v ? t.enableScrollWheelZoom() : t.disableScrollWheelZoom(), n ? t.enableDoubleClickZoom() : t.disableDoubleClickZoom(), r ? t.enableKeyboard() : t.disableKeyboard(), e ? t.enableInertialDragging() : t.disableInertialDragging(), o ? t.enableContinuousZoom() : t.disableContinuousZoom(), d ? t.enablePinchToZoom() : t.disablePinchToZoom(), c ? t.enableAutoResize() : t.disableAutoResize();
|
|
478
|
+
},
|
|
479
|
+
init(t) {
|
|
480
|
+
if (this.map)
|
|
481
|
+
return;
|
|
482
|
+
let a = this.$refs.view;
|
|
483
|
+
const i = new t.Map(a, { enableHighResolution: this.highResolution, enableMapClick: this.mapClick, preserveDrawingBuffer: this.preserveDrawingBuffer }), h = Math.random().toString();
|
|
484
|
+
this.mapKey = h, this.map = i;
|
|
485
|
+
const { setMapOptions: _, zoom: v, getCenterPoint: n, theme: r, mapStyle: e } = this;
|
|
486
|
+
_(), yt.call(this, i), i.reset(), this.setCenterZoom(i, n(), v), r ? i[X("setMapStyle")]({ styleJson: r }) : e && i[X("setMapStyle")](e);
|
|
487
|
+
let o = 0;
|
|
488
|
+
this.$emit("init", { BMap: t, map: i, mapKey: h }), j.$emit("init", { BMap: t, map: i, mapKey: h }), i.addEventListener("tilesloaded", () => {
|
|
489
|
+
o || (o++, this.$emit("ready", { BMap: t, map: i, mapKey: h }), j.$emit("ready", { BMap: t, map: i, mapKey: h }));
|
|
490
|
+
}), i.addEventListener("loaded", () => {
|
|
491
|
+
this.$emit("loaded", { BMap: t, map: i, mapKey: h }), j.$emit("loaded", { BMap: t, map: i, mapKey: h });
|
|
492
|
+
});
|
|
493
|
+
},
|
|
494
|
+
setCenterZoom(t, a, i) {
|
|
495
|
+
Z().type === "WebGL" && (!this.hasAnimation || !this.defaultAnimation) ? t.setCenter(a, {
|
|
496
|
+
noAnimation: !this.hasAnimation,
|
|
497
|
+
callback: () => {
|
|
498
|
+
t.setZoom(i, {
|
|
499
|
+
noAnimation: !this.hasAnimation,
|
|
500
|
+
zoomCenter: a,
|
|
501
|
+
callback: () => {
|
|
502
|
+
this.$emit("animationed", { BMap: this.BMap, map: t });
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
}) : t.centerAndZoom(a, i);
|
|
507
|
+
},
|
|
508
|
+
getCenterPoint() {
|
|
509
|
+
const { center: t, BMap: a } = this;
|
|
510
|
+
switch (gt(t)) {
|
|
511
|
+
case "String":
|
|
512
|
+
return t;
|
|
513
|
+
case "Object":
|
|
514
|
+
return new a.Point(t.lng, t.lat);
|
|
515
|
+
default:
|
|
516
|
+
return new a.Point();
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
initMap(t) {
|
|
520
|
+
this.BMap = t, this.init(t), _t(t);
|
|
521
|
+
},
|
|
522
|
+
getMapScript() {
|
|
523
|
+
return window.BMap ? window.BMap._preloader ? window.BMap._preloader : Promise.resolve(window.BMap) : (window.BMap = {}, window.BMap._preloader = new Promise((t, a) => {
|
|
524
|
+
window._initBaiduMap = function() {
|
|
525
|
+
window.BMap = Z().type == "WebGL" ? window.BMapGL : window.BMap, t(window.BMap), window.document.body.removeChild(i), window.BMap._preloader = null, window._initBaiduMap = null;
|
|
526
|
+
};
|
|
527
|
+
const i = document.createElement("script");
|
|
528
|
+
window.document.body.appendChild(i), Z().type === "WebGL" ? i.src = `https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${Z().ak}&callback=_initBaiduMap` : i.src = `https://api.map.baidu.com/api?v=${Z().v}&ak=${Z().ak}&callback=_initBaiduMap`;
|
|
529
|
+
}), window.BMap._preloader);
|
|
530
|
+
},
|
|
531
|
+
reset() {
|
|
532
|
+
const { getMapScript: t, initMap: a } = this;
|
|
533
|
+
t().then(a);
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
created() {
|
|
537
|
+
const t = {};
|
|
538
|
+
this.ak && (t.ak = this.ak), this.v && (t.v = this.v), this.type && (t.type = this.type), Jt(t);
|
|
539
|
+
},
|
|
540
|
+
mounted() {
|
|
541
|
+
this.reset();
|
|
542
|
+
},
|
|
543
|
+
data() {
|
|
544
|
+
return {
|
|
545
|
+
hasBmView: !1,
|
|
546
|
+
map: null,
|
|
547
|
+
BMap: null,
|
|
548
|
+
name: "bm-map",
|
|
549
|
+
mapKey: ""
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
}, $t = {
|
|
553
|
+
key: 0,
|
|
554
|
+
ref: "view",
|
|
555
|
+
style: { width: "100%", height: "100%" }
|
|
556
|
+
};
|
|
557
|
+
function te(t, a, i, h, _, v) {
|
|
558
|
+
return D(), I("div", {
|
|
559
|
+
class: Ot(t.$attrs.class),
|
|
560
|
+
style: K(t.$attrs.style)
|
|
561
|
+
}, [
|
|
562
|
+
_.hasBmView ? $("", !0) : (D(), I("div", $t, null, 512)),
|
|
563
|
+
q(t.$slots, "default")
|
|
564
|
+
], 6);
|
|
565
|
+
}
|
|
566
|
+
var ee = /* @__PURE__ */ ot(Ut, [["render", te]]);
|
|
567
|
+
const ie = {
|
|
568
|
+
control: {
|
|
569
|
+
unload: "removeControl"
|
|
570
|
+
},
|
|
571
|
+
layer: {
|
|
572
|
+
unload: "removeTileLayer"
|
|
573
|
+
},
|
|
574
|
+
overlay: {
|
|
575
|
+
unload: "removeOverlay"
|
|
576
|
+
},
|
|
577
|
+
contextMenu: {
|
|
578
|
+
unload: "removeContextMenu"
|
|
579
|
+
}
|
|
580
|
+
}, F = (t) => t.abstract || t.name !== "bm-map" ? F(t.$parent) : t;
|
|
581
|
+
function ne() {
|
|
582
|
+
const { unload: t, renderByParent: a, $parent: i, ready: h } = this;
|
|
583
|
+
j.$off("ready", h), a && i.reload(), t();
|
|
584
|
+
}
|
|
585
|
+
const oe = (t = {}) => ({
|
|
586
|
+
emits: ["ready", "init"],
|
|
587
|
+
computed: {
|
|
588
|
+
renderByParent() {
|
|
589
|
+
return this.$parent.preventChildrenRender;
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
created() {
|
|
593
|
+
const a = F(this.$parent), i = a.map, { ready: h, _init: _ } = this;
|
|
594
|
+
i ? h() : j.$on("ready", ({ mapKey: v }) => this.emitCallBack(v, h)), i ? this.init({ BMap: a.BMap, map: i }) : j.$on("init", ({ mapKey: v }) => this.emitCallBack(v, _));
|
|
595
|
+
},
|
|
596
|
+
mounted() {
|
|
597
|
+
const i = F(this.$parent).map, { mountedReady: h } = this;
|
|
598
|
+
i ? h() : j.$on("ready", ({ mapKey: _ }) => this.emitCallBack(_, h));
|
|
599
|
+
},
|
|
600
|
+
unmounted: ne,
|
|
601
|
+
methods: {
|
|
602
|
+
emitCallBack(a, i) {
|
|
603
|
+
const h = F(this.$parent);
|
|
604
|
+
a == h.mapKey && i();
|
|
605
|
+
},
|
|
606
|
+
_init() {
|
|
607
|
+
const a = F(this.$parent), i = this.BMap = a.BMap, h = this.map = a.map;
|
|
608
|
+
this.init({ BMap: i, map: h });
|
|
609
|
+
},
|
|
610
|
+
init() {
|
|
611
|
+
},
|
|
612
|
+
ready() {
|
|
613
|
+
const a = F(this.$parent), i = this.BMap = a.BMap, h = this.map = a.map;
|
|
614
|
+
this.load(), this.$emit("ready", {
|
|
615
|
+
BMap: i,
|
|
616
|
+
map: h
|
|
617
|
+
});
|
|
618
|
+
},
|
|
619
|
+
mountedReady() {
|
|
620
|
+
this.mountedLoad();
|
|
621
|
+
},
|
|
622
|
+
transmitEvent(a) {
|
|
623
|
+
this.$emit(a.type.replace(/^on/, ""), a);
|
|
624
|
+
},
|
|
625
|
+
reload() {
|
|
626
|
+
this && this.BMap && this.$nextTick(() => {
|
|
627
|
+
this.unload(), this.$nextTick(() => {
|
|
628
|
+
this.load(), this.mountedLoad();
|
|
629
|
+
});
|
|
630
|
+
});
|
|
631
|
+
},
|
|
632
|
+
unload() {
|
|
633
|
+
const { map: a, originInstance: i } = this;
|
|
634
|
+
try {
|
|
635
|
+
switch (t.type) {
|
|
636
|
+
case "search":
|
|
637
|
+
return i.clearResults();
|
|
638
|
+
case "autoComplete":
|
|
639
|
+
case "lushu":
|
|
640
|
+
return i.dispose();
|
|
641
|
+
case "markerClusterer":
|
|
642
|
+
return i.clearMarkers();
|
|
643
|
+
default:
|
|
644
|
+
a[ie[t.type].unload](i);
|
|
645
|
+
}
|
|
646
|
+
} catch (h) {
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
mountedLoad() {
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
var bt = (t) => oe({ type: t });
|
|
654
|
+
const ae = {
|
|
655
|
+
name: "bm-marker",
|
|
656
|
+
mixins: [bt("overlay")],
|
|
657
|
+
inject: {
|
|
658
|
+
Cluster: {
|
|
659
|
+
default: () => ({})
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
props: {
|
|
663
|
+
position: {},
|
|
664
|
+
offset: {},
|
|
665
|
+
icon: {},
|
|
666
|
+
massClear: {
|
|
667
|
+
type: Boolean,
|
|
668
|
+
default: !0
|
|
669
|
+
},
|
|
670
|
+
dragging: {
|
|
671
|
+
type: Boolean,
|
|
672
|
+
default: !1
|
|
673
|
+
},
|
|
674
|
+
clicking: {
|
|
675
|
+
type: Boolean,
|
|
676
|
+
default: !0
|
|
677
|
+
},
|
|
678
|
+
raiseOnDrag: {
|
|
679
|
+
type: Boolean,
|
|
680
|
+
default: !1
|
|
681
|
+
},
|
|
682
|
+
draggingCursor: {
|
|
683
|
+
type: String
|
|
684
|
+
},
|
|
685
|
+
rotation: {
|
|
686
|
+
type: Number
|
|
687
|
+
},
|
|
688
|
+
shadow: {
|
|
689
|
+
type: Object
|
|
690
|
+
},
|
|
691
|
+
title: {
|
|
692
|
+
type: String
|
|
693
|
+
},
|
|
694
|
+
label: {
|
|
695
|
+
type: Object
|
|
696
|
+
},
|
|
697
|
+
animation: {
|
|
698
|
+
type: String
|
|
699
|
+
},
|
|
700
|
+
top: {
|
|
701
|
+
type: Boolean,
|
|
702
|
+
default: !1
|
|
703
|
+
},
|
|
704
|
+
zIndex: {
|
|
705
|
+
type: Number,
|
|
706
|
+
default: 0
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
watch: {
|
|
710
|
+
"position.lng"(t, a) {
|
|
711
|
+
const { BMap: i, originInstance: h, position: _, renderByParent: v, $parent: n } = this;
|
|
712
|
+
t !== a && t >= -180 && t <= 180 && h.setPosition(tt(i, { lng: t, lat: _.lat })), v && n.reload();
|
|
713
|
+
},
|
|
714
|
+
"position.lat"(t, a) {
|
|
715
|
+
const { BMap: i, originInstance: h, position: _, renderByParent: v, $parent: n } = this;
|
|
716
|
+
t !== a && t >= -74 && t <= 74 && h.setPosition(tt(i, { lng: _.lng, lat: t })), v && n.reload();
|
|
717
|
+
},
|
|
718
|
+
"offset.width"(t, a) {
|
|
719
|
+
const { BMap: i, originInstance: h } = this;
|
|
720
|
+
t !== a && h.setOffset(new i.Size(t, this.offset.height));
|
|
721
|
+
},
|
|
722
|
+
"offset.height"(t, a) {
|
|
723
|
+
const { BMap: i, originInstance: h } = this;
|
|
724
|
+
t !== a && h.setOffset(new i.Size(this.offset.width, t));
|
|
725
|
+
},
|
|
726
|
+
icon: {
|
|
727
|
+
deep: !0,
|
|
728
|
+
handler(t) {
|
|
729
|
+
const { BMap: a, originInstance: i, rotation: h } = this;
|
|
730
|
+
i && i.setIcon(ft(a, t)), h && i && i.setRotation(h);
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
massClear(t) {
|
|
734
|
+
t ? this.originInstance.enableMassClear() : this.originInstance.disableMassClear();
|
|
735
|
+
},
|
|
736
|
+
dragging(t) {
|
|
737
|
+
t ? this.originInstance.enableDragging() : this.originInstance.disableDragging();
|
|
738
|
+
},
|
|
739
|
+
clicking() {
|
|
740
|
+
this.reload();
|
|
741
|
+
},
|
|
742
|
+
raiseOnDrag() {
|
|
743
|
+
this.reload();
|
|
744
|
+
},
|
|
745
|
+
draggingCursor(t) {
|
|
746
|
+
this.originInstance.setDraggingCursor(t);
|
|
747
|
+
},
|
|
748
|
+
rotation(t) {
|
|
749
|
+
this.originInstance.setRotation(t);
|
|
750
|
+
},
|
|
751
|
+
shadow(t) {
|
|
752
|
+
this.originInstance.setShadow(t);
|
|
753
|
+
},
|
|
754
|
+
title(t) {
|
|
755
|
+
this.originInstance.setTitle(t);
|
|
756
|
+
},
|
|
757
|
+
label(t) {
|
|
758
|
+
this.reload();
|
|
759
|
+
},
|
|
760
|
+
animation(t) {
|
|
761
|
+
this.originInstance.setAnimation(window[t]);
|
|
762
|
+
},
|
|
763
|
+
top(t) {
|
|
764
|
+
this.originInstance.setTop(t);
|
|
765
|
+
},
|
|
766
|
+
zIndex(t) {
|
|
767
|
+
this.originInstance.setZIndex(t);
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
methods: {
|
|
771
|
+
load() {
|
|
772
|
+
var t, a;
|
|
773
|
+
const { BMap: i, map: h, position: _, offset: v, icon: n, massClear: r, dragging: e, clicking: o, raiseOnDrag: d, draggingCursor: c, rotation: f, shadow: s, title: p, label: y, animation: M, top: u, renderByParent: C, $parent: S, zIndex: z } = this;
|
|
774
|
+
let B = {
|
|
775
|
+
offset: v,
|
|
776
|
+
icon: n && ft(i, n),
|
|
777
|
+
enableMassClear: r,
|
|
778
|
+
enableDragging: e,
|
|
779
|
+
enableClicking: o,
|
|
780
|
+
raiseOnDrag: d,
|
|
781
|
+
draggingCursor: c,
|
|
782
|
+
rotation: f,
|
|
783
|
+
shadow: s,
|
|
784
|
+
title: p
|
|
785
|
+
};
|
|
786
|
+
et(B);
|
|
787
|
+
const l = new i.Marker(new i.Point(_.lng, _.lat), B);
|
|
788
|
+
this.originInstance = l, y && l && l.setLabel(Kt(i, y)), l.setTop(u), l.setZIndex(z), yt.call(this, l), C ? S.reload() : h.addOverlay(l), l.setAnimation(window[M]), (a = (t = this.Cluster) == null ? void 0 : t.addMaker) == null || a.call(t, this);
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
beforeUnmount() {
|
|
792
|
+
var t, a;
|
|
793
|
+
(a = (t = this.Cluster) == null ? void 0 : t.removeMaker) == null || a.call(t, this);
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
function se(t, a, i, h, _, v) {
|
|
797
|
+
return D(), I("div", null, [
|
|
798
|
+
q(t.$slots, "default")
|
|
799
|
+
]);
|
|
800
|
+
}
|
|
801
|
+
var re = /* @__PURE__ */ ot(ae, [["render", se]]), wt = { exports: {} };
|
|
802
|
+
(function(t, a) {
|
|
803
|
+
(function(i, h) {
|
|
804
|
+
t.exports = h();
|
|
805
|
+
})(H, function() {
|
|
806
|
+
var i = typeof window != "undefined" ? window : typeof H != "undefined" ? H : this;
|
|
807
|
+
function h(s, p) {
|
|
808
|
+
return p = { exports: {} }, s(p, p.exports, i), p.exports;
|
|
809
|
+
}
|
|
810
|
+
var _ = h(function(s, p, y) {
|
|
811
|
+
(function(M, u) {
|
|
812
|
+
typeof p == "object" ? s.exports = u() : (M.BMapLib = M.BMapLib || {}, M.BMapLib.TextIconOverlay = M.BMapLib.TextIconOverlay || u());
|
|
813
|
+
})(i, function() {
|
|
814
|
+
var M, u = M = u || { version: "1.3.8" }, C = {};
|
|
815
|
+
u.guid = "$BAIDU$", C[u.guid] = C[u.guid] || {}, u.dom = u.dom || {}, u.dom.g = function(l) {
|
|
816
|
+
return typeof l == "string" || l instanceof String ? document.getElementById(l) : l && l.nodeName && (l.nodeType == 1 || l.nodeType == 9) ? l : null;
|
|
817
|
+
}, u.g = u.G = u.dom.g, u.dom.getDocument = function(l) {
|
|
818
|
+
return l = u.dom.g(l), l.nodeType == 9 ? l : l.ownerDocument || l.document;
|
|
819
|
+
}, u.lang = u.lang || {}, u.lang.isString = function(l) {
|
|
820
|
+
return Object.prototype.toString.call(l) == "[object String]";
|
|
821
|
+
}, u.isString = u.lang.isString, u.dom._g = function(l) {
|
|
822
|
+
return u.lang.isString(l) ? document.getElementById(l) : l;
|
|
823
|
+
}, u._g = u.dom._g, u.browser = u.browser || {}, /msie (\d+\.\d)/i.test(navigator.userAgent) && (u.browser.ie = u.ie = document.documentMode || +RegExp.$1), u.dom.getComputedStyle = function(l, m) {
|
|
824
|
+
l = u.dom._g(l);
|
|
825
|
+
var g = u.dom.getDocument(l), w;
|
|
826
|
+
return g.defaultView && g.defaultView.getComputedStyle && (w = g.defaultView.getComputedStyle(l, null), w) ? w[m] || w.getPropertyValue(m) : "";
|
|
827
|
+
}, u.dom._styleFixer = u.dom._styleFixer || {}, u.dom._styleFilter = u.dom._styleFilter || [], u.dom._styleFilter.filter = function(l, m, g) {
|
|
828
|
+
for (var w = 0, b = u.dom._styleFilter, O; O = b[w]; w++)
|
|
829
|
+
(O = O[g]) && (m = O(l, m));
|
|
830
|
+
return m;
|
|
831
|
+
}, u.string = u.string || {}, u.string.toCamelCase = function(l) {
|
|
832
|
+
return l.indexOf("-") < 0 && l.indexOf("_") < 0 ? l : l.replace(/[-_][^-_]/g, function(m) {
|
|
833
|
+
return m.charAt(1).toUpperCase();
|
|
834
|
+
});
|
|
835
|
+
}, u.dom.getStyle = function(l, m) {
|
|
836
|
+
var g = u.dom;
|
|
837
|
+
l = g.g(l), m = u.string.toCamelCase(m);
|
|
838
|
+
var w = l.style[m] || (l.currentStyle ? l.currentStyle[m] : "") || g.getComputedStyle(l, m);
|
|
839
|
+
if (!w) {
|
|
840
|
+
var b = g._styleFixer[m];
|
|
841
|
+
b && (w = b.get ? b.get(l) : u.dom.getStyle(l, b));
|
|
842
|
+
}
|
|
843
|
+
return (b = g._styleFilter) && (w = b.filter(m, w, "get")), w;
|
|
844
|
+
}, u.getStyle = u.dom.getStyle, /opera\/(\d+\.\d)/i.test(navigator.userAgent) && (u.browser.opera = +RegExp.$1), u.browser.isWebkit = /webkit/i.test(navigator.userAgent), u.browser.isGecko = /gecko/i.test(navigator.userAgent) && !/like gecko/i.test(navigator.userAgent), u.browser.isStrict = document.compatMode == "CSS1Compat", u.dom.getPosition = function(l) {
|
|
845
|
+
l = u.dom.g(l);
|
|
846
|
+
var m = u.dom.getDocument(l), g = u.browser, w = u.dom.getStyle;
|
|
847
|
+
g.isGecko > 0 && m.getBoxObjectFor && w(l, "position") == "absolute" && (l.style.top === "" || l.style.left);
|
|
848
|
+
var b = { left: 0, top: 0 }, O = g.ie && !g.isStrict ? m.body : m.documentElement, x, k;
|
|
849
|
+
if (l == O)
|
|
850
|
+
return b;
|
|
851
|
+
if (l.getBoundingClientRect) {
|
|
852
|
+
k = l.getBoundingClientRect(), b.left = Math.floor(k.left) + Math.max(m.documentElement.scrollLeft, m.body.scrollLeft), b.top = Math.floor(k.top) + Math.max(m.documentElement.scrollTop, m.body.scrollTop), b.left -= m.documentElement.clientLeft, b.top -= m.documentElement.clientTop;
|
|
853
|
+
var P = m.body, A = parseInt(w(P, "borderLeftWidth")), W = parseInt(w(P, "borderTopWidth"));
|
|
854
|
+
g.ie && !g.isStrict && (b.left -= isNaN(A) ? 2 : A, b.top -= isNaN(W) ? 2 : W);
|
|
855
|
+
} else {
|
|
856
|
+
x = l;
|
|
857
|
+
do {
|
|
858
|
+
if (b.left += x.offsetLeft, b.top += x.offsetTop, g.isWebkit > 0 && w(x, "position") == "fixed") {
|
|
859
|
+
b.left += m.body.scrollLeft, b.top += m.body.scrollTop;
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
x = x.offsetParent;
|
|
863
|
+
} while (x && x != l);
|
|
864
|
+
for ((g.opera > 0 || g.isWebkit > 0 && w(l, "position") == "absolute") && (b.top -= m.body.offsetTop), x = l.offsetParent; x && x != m.body; )
|
|
865
|
+
b.left -= x.scrollLeft, (!g.opera || x.tagName != "TR") && (b.top -= x.scrollTop), x = x.offsetParent;
|
|
866
|
+
}
|
|
867
|
+
return b;
|
|
868
|
+
}, u.event = u.event || {}, u.event._listeners = u.event._listeners || [], u.event.on = function(l, m, g) {
|
|
869
|
+
m = m.replace(/^on/i, ""), l = u.dom._g(l);
|
|
870
|
+
var w = function(P) {
|
|
871
|
+
g.call(l, P);
|
|
872
|
+
}, b = u.event._listeners, O = u.event._eventFilter, x, k = m;
|
|
873
|
+
return m = m.toLowerCase(), O && O[m] && (x = O[m](l, m, w), k = x.type, w = x.listener), l.addEventListener ? l.addEventListener(k, w, !1) : l.attachEvent && l.attachEvent("on" + k, w), b[b.length] = [l, m, g, w, k], l;
|
|
874
|
+
}, u.on = u.event.on, (function() {
|
|
875
|
+
var l = C[u.guid];
|
|
876
|
+
u.lang.guid = function() {
|
|
877
|
+
return "TANGRAM__" + (l._counter++).toString(36);
|
|
878
|
+
}, l._counter = l._counter || 1;
|
|
879
|
+
})(), C[u.guid]._instances = C[u.guid]._instances || {}, u.lang.isFunction = function(l) {
|
|
880
|
+
return Object.prototype.toString.call(l) == "[object Function]";
|
|
881
|
+
}, u.lang.Class = function(l) {
|
|
882
|
+
this.guid = l || u.lang.guid(), C[u.guid]._instances[this.guid] = this;
|
|
883
|
+
}, C[u.guid]._instances = C[u.guid]._instances || {}, u.lang.Class.prototype.dispose = function() {
|
|
884
|
+
delete C[u.guid]._instances[this.guid];
|
|
885
|
+
for (var l in this)
|
|
886
|
+
u.lang.isFunction(this[l]) || delete this[l];
|
|
887
|
+
this.disposed = !0;
|
|
888
|
+
}, u.lang.Class.prototype.toString = function() {
|
|
889
|
+
return "[object " + (this._className || "Object") + "]";
|
|
890
|
+
}, u.lang.Event = function(l, m) {
|
|
891
|
+
this.type = l, this.returnValue = !0, this.target = m || null, this.currentTarget = null;
|
|
892
|
+
}, u.lang.Class.prototype.addEventListener = function(l, m, g) {
|
|
893
|
+
if (u.lang.isFunction(m)) {
|
|
894
|
+
!this.__listeners && (this.__listeners = {});
|
|
895
|
+
var w = this.__listeners, b;
|
|
896
|
+
if (typeof g == "string" && g) {
|
|
897
|
+
if (/[^\w\-]/.test(g))
|
|
898
|
+
throw "nonstandard key:" + g;
|
|
899
|
+
m.hashCode = g, b = g;
|
|
900
|
+
}
|
|
901
|
+
l.indexOf("on") != 0 && (l = "on" + l), typeof w[l] != "object" && (w[l] = {}), b = b || u.lang.guid(), m.hashCode = b, w[l][b] = m;
|
|
902
|
+
}
|
|
903
|
+
}, u.lang.Class.prototype.removeEventListener = function(l, m) {
|
|
904
|
+
if (!(typeof m != "undefined" && (u.lang.isFunction(m) && !(m = m.hashCode) || !u.lang.isString(m)))) {
|
|
905
|
+
!this.__listeners && (this.__listeners = {}), l.indexOf("on") != 0 && (l = "on" + l);
|
|
906
|
+
var g = this.__listeners;
|
|
907
|
+
if (g[l])
|
|
908
|
+
if (typeof m != "undefined")
|
|
909
|
+
g[l][m] && delete g[l][m];
|
|
910
|
+
else
|
|
911
|
+
for (var w in g[l])
|
|
912
|
+
delete g[l][w];
|
|
913
|
+
}
|
|
914
|
+
}, u.lang.Class.prototype.dispatchEvent = function(l, m) {
|
|
915
|
+
u.lang.isString(l) && (l = new u.lang.Event(l)), !this.__listeners && (this.__listeners = {}), m = m || {};
|
|
916
|
+
for (var g in m)
|
|
917
|
+
l[g] = m[g];
|
|
918
|
+
var g, w = this.__listeners, b = l.type;
|
|
919
|
+
if (l.target = l.target || this, l.currentTarget = this, b.indexOf("on") != 0 && (b = "on" + b), u.lang.isFunction(this[b]) && this[b].apply(this, arguments), typeof w[b] == "object")
|
|
920
|
+
for (g in w[b])
|
|
921
|
+
w[b][g].apply(this, arguments);
|
|
922
|
+
return l.returnValue;
|
|
923
|
+
}, u.lang.inherits = function(l, m, g) {
|
|
924
|
+
var w, b, O = l.prototype, x = new Function();
|
|
925
|
+
x.prototype = m.prototype, b = l.prototype = new x();
|
|
926
|
+
for (w in O)
|
|
927
|
+
b[w] = O[w];
|
|
928
|
+
l.prototype.constructor = l, l.superClass = m.prototype, typeof g == "string" && (b._className = g);
|
|
929
|
+
}, u.inherits = u.lang.inherits;
|
|
930
|
+
var S = "http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m", z = "png", B = function(l, m, g) {
|
|
931
|
+
try {
|
|
932
|
+
BMap;
|
|
933
|
+
} catch (w) {
|
|
934
|
+
throw Error("Baidu Map JS API is not ready yet!");
|
|
935
|
+
}
|
|
936
|
+
M.lang.inherits(B, BMap.Overlay, "TextIconOverlay"), this._position = l, this._text = m, this._options = g || {}, this._styles = this._options.styles || [], !this._styles.length && this._setupDefaultStyles();
|
|
937
|
+
};
|
|
938
|
+
return B.prototype._setupDefaultStyles = function() {
|
|
939
|
+
for (var l = [53, 56, 66, 78, 90], m = 0, g; g = l[m]; m++)
|
|
940
|
+
this._styles.push({
|
|
941
|
+
url: S + m + "." + z,
|
|
942
|
+
size: new BMap.Size(g, g)
|
|
943
|
+
});
|
|
944
|
+
}, B.prototype.initialize = function(l) {
|
|
945
|
+
return this._map = l, this._domElement = document.createElement("div"), this._updateCss(), this._updateText(), this._updatePosition(), this._bind(), this._map.getPanes().markerMouseTarget.appendChild(this._domElement), this._domElement;
|
|
946
|
+
}, B.prototype.draw = function() {
|
|
947
|
+
this._map && this._updatePosition();
|
|
948
|
+
}, B.prototype.getText = function() {
|
|
949
|
+
return this._text;
|
|
950
|
+
}, B.prototype.setText = function(l) {
|
|
951
|
+
l && (!this._text || this._text.toString() != l.toString()) && (this._text = l, this._updateText(), this._updateCss(), this._updatePosition());
|
|
952
|
+
}, B.prototype.getPosition = function() {
|
|
953
|
+
return this._position;
|
|
954
|
+
}, B.prototype.setPosition = function(l) {
|
|
955
|
+
l && (!this._position || !this._position.equals(l)) && (this._position = l, this._updatePosition());
|
|
956
|
+
}, B.prototype.getStyleByText = function(l, m) {
|
|
957
|
+
var g = parseInt(l), w = parseInt(g / 10);
|
|
958
|
+
return w = Math.max(0, w), w = Math.min(w, m.length - 1), m[w];
|
|
959
|
+
}, B.prototype._updateCss = function() {
|
|
960
|
+
if (this._domElement) {
|
|
961
|
+
var l = this.getStyleByText(this._text, this._styles);
|
|
962
|
+
this._domElement.style.cssText = this._buildCssText(l);
|
|
963
|
+
}
|
|
964
|
+
}, B.prototype._updateText = function() {
|
|
965
|
+
this._domElement && (this._domElement.innerHTML = this._text);
|
|
966
|
+
}, B.prototype._updatePosition = function() {
|
|
967
|
+
if (this._domElement && this._position) {
|
|
968
|
+
var l = this._domElement.style, m = this._map.pointToOverlayPixel(this._position);
|
|
969
|
+
m.x -= Math.ceil(parseInt(l.width) / 2), m.y -= Math.ceil(parseInt(l.height) / 2), l.left = m.x + "px", l.top = m.y + "px";
|
|
970
|
+
}
|
|
971
|
+
}, B.prototype._buildCssText = function(l) {
|
|
972
|
+
var m = l.url, g = l.size, w = l.anchor, b = l.offset, O = l.textColor || "black", x = l.textSize || 10, k = [];
|
|
973
|
+
if (M.browser.ie < 7)
|
|
974
|
+
k.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="' + m + '");');
|
|
975
|
+
else {
|
|
976
|
+
k.push("background-image:url(" + m + ");");
|
|
977
|
+
var P = "0 0";
|
|
978
|
+
b instanceof BMap.Size && (P = b.width + "px " + b.height + "px"), k.push("background-position:" + P + ";");
|
|
979
|
+
}
|
|
980
|
+
return g instanceof BMap.Size && (w instanceof BMap.Size ? (w.height > 0 && w.height < g.height && k.push("height:" + (g.height - w.height) + "px; padding-top:" + w.height + "px;"), w.width > 0 && w.width < g.width && k.push("width:" + (g.width - w.width) + "px; padding-left:" + w.width + "px;")) : (k.push("height:" + g.height + "px; line-height:" + g.height + "px;"), k.push("width:" + g.width + "px; text-align:center;"))), k.push("cursor:pointer; color:" + O + "; position:absolute; font-size:" + x + "px; font-family:Arial,sans-serif; font-weight:bold"), k.join("");
|
|
981
|
+
}, B.prototype._bind = function() {
|
|
982
|
+
if (!this._domElement)
|
|
983
|
+
return;
|
|
984
|
+
var l = this, m = this._map, g = M.lang.Event;
|
|
985
|
+
function w(b, O) {
|
|
986
|
+
var x = b.srcElement || b.target, k = b.clientX || b.pageX, P = b.clientY || b.pageY;
|
|
987
|
+
if (b && O && k && P && x) {
|
|
988
|
+
var A = M.dom.getPosition(m.getContainer());
|
|
989
|
+
O.pixel = new BMap.Pixel(k - A.left, P - A.top), O.point = m.pixelToPoint(O.pixel);
|
|
990
|
+
}
|
|
991
|
+
return O;
|
|
992
|
+
}
|
|
993
|
+
M.event.on(this._domElement, "mouseover", function(b) {
|
|
994
|
+
l.dispatchEvent(w(b, new g("onmouseover")));
|
|
995
|
+
}), M.event.on(this._domElement, "mouseout", function(b) {
|
|
996
|
+
l.dispatchEvent(w(b, new g("onmouseout")));
|
|
997
|
+
}), M.event.on(this._domElement, "click", function(b) {
|
|
998
|
+
l.dispatchEvent(w(b, new g("onclick")));
|
|
999
|
+
});
|
|
1000
|
+
}, B;
|
|
1001
|
+
});
|
|
1002
|
+
}), v = _ && typeof _ == "object" && "default" in _ ? _.default : _, n = function(s, p, y) {
|
|
1003
|
+
p = r(p);
|
|
1004
|
+
var M = s.pointToPixel(p.getNorthEast()), u = s.pointToPixel(p.getSouthWest());
|
|
1005
|
+
M.x += y, M.y -= y, u.x -= y, u.y += y;
|
|
1006
|
+
var C = s.pixelToPoint(M), S = s.pixelToPoint(u);
|
|
1007
|
+
return new BMap.Bounds(S, C);
|
|
1008
|
+
}, r = function(s) {
|
|
1009
|
+
var p = e(s.getNorthEast().lng, -180, 180), y = e(s.getSouthWest().lng, -180, 180), M = e(s.getNorthEast().lat, -74, 74), u = e(s.getSouthWest().lat, -74, 74);
|
|
1010
|
+
return new BMap.Bounds(new BMap.Point(y, u), new BMap.Point(p, M));
|
|
1011
|
+
}, e = function(s, p, y) {
|
|
1012
|
+
return p && (s = Math.max(s, p)), y && (s = Math.min(s, y)), s;
|
|
1013
|
+
}, o = function(s) {
|
|
1014
|
+
return Object.prototype.toString.call(s) === "[object Array]";
|
|
1015
|
+
}, d = function(s, p) {
|
|
1016
|
+
var y = -1;
|
|
1017
|
+
if (o(p)) {
|
|
1018
|
+
if (p.indexOf)
|
|
1019
|
+
y = p.indexOf(s);
|
|
1020
|
+
else
|
|
1021
|
+
for (var M = 0, u; u = p[M]; M++)
|
|
1022
|
+
if (u === s) {
|
|
1023
|
+
y = M;
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
return y;
|
|
1028
|
+
}, c = function(s, p) {
|
|
1029
|
+
try {
|
|
1030
|
+
BMap;
|
|
1031
|
+
} catch (C) {
|
|
1032
|
+
throw Error("Baidu Map JS API is not ready yet!");
|
|
1033
|
+
}
|
|
1034
|
+
if (s) {
|
|
1035
|
+
this._map = s, this._markers = [], this._clusters = [];
|
|
1036
|
+
var y = p || {};
|
|
1037
|
+
this._gridSize = y.gridSize || 60, this._maxZoom = y.maxZoom || 18, this._minClusterSize = y.minClusterSize || 2, this._isAverageCenter = !1, y.isAverageCenter != null && (this._isAverageCenter = y.isAverageCenter), this._styles = y.styles || [];
|
|
1038
|
+
var M = this;
|
|
1039
|
+
this._map.addEventListener("zoomend", function() {
|
|
1040
|
+
M._redraw();
|
|
1041
|
+
}), this._map.addEventListener("moveend", function() {
|
|
1042
|
+
M._redraw();
|
|
1043
|
+
});
|
|
1044
|
+
var u = y.markers;
|
|
1045
|
+
o(u) && this.addMarkers(u);
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
c.prototype.addMarkers = function(s) {
|
|
1049
|
+
if (s.length) {
|
|
1050
|
+
for (var p = 0, y = s.length; p < y; p++)
|
|
1051
|
+
this._pushMarkerTo(s[p]);
|
|
1052
|
+
this._createClusters();
|
|
1053
|
+
}
|
|
1054
|
+
}, c.prototype._pushMarkerTo = function(s) {
|
|
1055
|
+
var p = d(s, this._markers);
|
|
1056
|
+
p === -1 && (s.isInCluster = !1, this._markers.push(s));
|
|
1057
|
+
}, c.prototype.addMarker = function(s) {
|
|
1058
|
+
this._pushMarkerTo(s), this._createClusters();
|
|
1059
|
+
}, c.prototype._createClusters = function() {
|
|
1060
|
+
var s = this._map.getBounds();
|
|
1061
|
+
if (s.getCenter())
|
|
1062
|
+
for (var p = n(this._map, s, this._gridSize), y = 0, M; M = this._markers[y]; y++)
|
|
1063
|
+
!M.isInCluster && p.containsPoint(M.getPosition()) && this._addToClosestCluster(M);
|
|
1064
|
+
}, c.prototype._addToClosestCluster = function(s) {
|
|
1065
|
+
var p = 4e6, y = null;
|
|
1066
|
+
s.getPosition();
|
|
1067
|
+
for (var M = 0, u; u = this._clusters[M]; M++) {
|
|
1068
|
+
var C = u.getCenter();
|
|
1069
|
+
if (C) {
|
|
1070
|
+
var S = this._map.getDistance(C, s.getPosition());
|
|
1071
|
+
S < p && (p = S, y = u);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
if (y && y.isMarkerInClusterBounds(s))
|
|
1075
|
+
y.addMarker(s);
|
|
1076
|
+
else {
|
|
1077
|
+
var u = new f(this);
|
|
1078
|
+
u.addMarker(s), this._clusters.push(u);
|
|
1079
|
+
}
|
|
1080
|
+
}, c.prototype._clearLastClusters = function() {
|
|
1081
|
+
for (var s = 0, p; p = this._clusters[s]; s++)
|
|
1082
|
+
p.remove();
|
|
1083
|
+
this._clusters = [], this._removeMarkersFromCluster();
|
|
1084
|
+
}, c.prototype._removeMarkersFromCluster = function() {
|
|
1085
|
+
for (var s = 0, p; p = this._markers[s]; s++)
|
|
1086
|
+
p.isInCluster = !1;
|
|
1087
|
+
}, c.prototype._removeMarkersFromMap = function() {
|
|
1088
|
+
for (var s = 0, p; p = this._markers[s]; s++) {
|
|
1089
|
+
p.isInCluster = !1;
|
|
1090
|
+
var y = p.getLabel();
|
|
1091
|
+
this._map.removeOverlay(p), p.setLabel(y);
|
|
1092
|
+
}
|
|
1093
|
+
}, c.prototype._removeMarker = function(s) {
|
|
1094
|
+
var p = d(s, this._markers);
|
|
1095
|
+
return p === -1 ? !1 : (this._map.removeOverlay(s), this._markers.splice(p, 1), !0);
|
|
1096
|
+
}, c.prototype.removeMarker = function(s) {
|
|
1097
|
+
var p = this._removeMarker(s);
|
|
1098
|
+
return p && (this._clearLastClusters(), this._createClusters()), p;
|
|
1099
|
+
}, c.prototype.removeMarkers = function(s) {
|
|
1100
|
+
for (var p = !1, y = 0; y < s.length; y++) {
|
|
1101
|
+
var M = this._removeMarker(s[y]);
|
|
1102
|
+
p = p || M;
|
|
1103
|
+
}
|
|
1104
|
+
return p && (this._clearLastClusters(), this._createClusters()), p;
|
|
1105
|
+
}, c.prototype.clearMarkers = function() {
|
|
1106
|
+
this._clearLastClusters(), this._removeMarkersFromMap(), this._markers = [];
|
|
1107
|
+
}, c.prototype._redraw = function() {
|
|
1108
|
+
this._clearLastClusters(), this._createClusters();
|
|
1109
|
+
}, c.prototype.getGridSize = function() {
|
|
1110
|
+
return this._gridSize;
|
|
1111
|
+
}, c.prototype.setGridSize = function(s) {
|
|
1112
|
+
this._gridSize = s, this._redraw();
|
|
1113
|
+
}, c.prototype.getMaxZoom = function() {
|
|
1114
|
+
return this._maxZoom;
|
|
1115
|
+
}, c.prototype.setMaxZoom = function(s) {
|
|
1116
|
+
this._maxZoom = s, this._redraw();
|
|
1117
|
+
}, c.prototype.getStyles = function() {
|
|
1118
|
+
return this._styles;
|
|
1119
|
+
}, c.prototype.setStyles = function(s) {
|
|
1120
|
+
this._styles = s, this._redraw();
|
|
1121
|
+
}, c.prototype.getMinClusterSize = function() {
|
|
1122
|
+
return this._minClusterSize;
|
|
1123
|
+
}, c.prototype.setMinClusterSize = function(s) {
|
|
1124
|
+
this._minClusterSize = s, this._redraw();
|
|
1125
|
+
}, c.prototype.isAverageCenter = function() {
|
|
1126
|
+
return this._isAverageCenter;
|
|
1127
|
+
}, c.prototype.getMap = function() {
|
|
1128
|
+
return this._map;
|
|
1129
|
+
}, c.prototype.getMarkers = function() {
|
|
1130
|
+
return this._markers;
|
|
1131
|
+
}, c.prototype.getClustersCount = function() {
|
|
1132
|
+
for (var s = 0, p = 0, y; y = this._clusters[p]; p++)
|
|
1133
|
+
y.isReal() && s++;
|
|
1134
|
+
return s;
|
|
1135
|
+
};
|
|
1136
|
+
function f(s) {
|
|
1137
|
+
this._markerClusterer = s, this._map = s.getMap(), this._minClusterSize = s.getMinClusterSize(), this._isAverageCenter = s.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new v(this._center, this._markers.length, { styles: this._markerClusterer.getStyles() });
|
|
1138
|
+
}
|
|
1139
|
+
return f.prototype.addMarker = function(s) {
|
|
1140
|
+
if (this.isMarkerInCluster(s))
|
|
1141
|
+
return !1;
|
|
1142
|
+
if (!this._center)
|
|
1143
|
+
this._center = s.getPosition(), this.updateGridBounds();
|
|
1144
|
+
else if (this._isAverageCenter) {
|
|
1145
|
+
var p = this._markers.length + 1, y = (this._center.lat * (p - 1) + s.getPosition().lat) / p, M = (this._center.lng * (p - 1) + s.getPosition().lng) / p;
|
|
1146
|
+
this._center = new BMap.Point(M, y), this.updateGridBounds();
|
|
1147
|
+
}
|
|
1148
|
+
s.isInCluster = !0, this._markers.push(s);
|
|
1149
|
+
var u = this._markers.length;
|
|
1150
|
+
if (u < this._minClusterSize)
|
|
1151
|
+
return this._map.addOverlay(s), !0;
|
|
1152
|
+
if (u === this._minClusterSize)
|
|
1153
|
+
for (var C = 0; C < u; C++) {
|
|
1154
|
+
var S = this._markers[C].getLabel();
|
|
1155
|
+
this._markers[C].getMap() && this._map.removeOverlay(this._markers[C]), this._markers[C].setLabel(S);
|
|
1156
|
+
}
|
|
1157
|
+
return this._map.addOverlay(this._clusterMarker), this._isReal = !0, this.updateClusterMarker(), !0;
|
|
1158
|
+
}, f.prototype.isMarkerInCluster = function(s) {
|
|
1159
|
+
if (this._markers.indexOf)
|
|
1160
|
+
return this._markers.indexOf(s) != -1;
|
|
1161
|
+
for (var p = 0, y; y = this._markers[p]; p++)
|
|
1162
|
+
if (y === s)
|
|
1163
|
+
return !0;
|
|
1164
|
+
return !1;
|
|
1165
|
+
}, f.prototype.isMarkerInClusterBounds = function(s) {
|
|
1166
|
+
return this._gridBounds.containsPoint(s.getPosition());
|
|
1167
|
+
}, f.prototype.isReal = function(s) {
|
|
1168
|
+
return this._isReal;
|
|
1169
|
+
}, f.prototype.updateGridBounds = function() {
|
|
1170
|
+
var s = new BMap.Bounds(this._center, this._center);
|
|
1171
|
+
this._gridBounds = n(this._map, s, this._markerClusterer.getGridSize());
|
|
1172
|
+
}, f.prototype.updateClusterMarker = function() {
|
|
1173
|
+
if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
|
|
1174
|
+
this._clusterMarker && this._map.removeOverlay(this._clusterMarker);
|
|
1175
|
+
for (var s = 0, p; p = this._markers[s]; s++)
|
|
1176
|
+
this._map.addOverlay(p);
|
|
1177
|
+
return;
|
|
1178
|
+
}
|
|
1179
|
+
if (this._markers.length < this._minClusterSize) {
|
|
1180
|
+
this._clusterMarker.hide();
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
this._clusterMarker.setPosition(this._center), this._clusterMarker.setText(this._markers.length), this._clusterMarker.addEventListener && !this._clusterMarker._hasClickEvent && this._clusterMarker.addEventListener("click", function(y) {
|
|
1184
|
+
this._clusterMarker._hasClickEvent = !0, this._markers && this._map.setViewport(this.getBounds());
|
|
1185
|
+
}.bind(this));
|
|
1186
|
+
}, f.prototype.remove = function() {
|
|
1187
|
+
for (var s = 0; this._markers[s]; s++) {
|
|
1188
|
+
var p = this._markers[s].getLabel();
|
|
1189
|
+
this._markers[s].getMap() && this._map.removeOverlay(this._markers[s]), this._markers[s].setLabel(p);
|
|
1190
|
+
}
|
|
1191
|
+
this._map.removeOverlay(this._clusterMarker), this._markers.length = 0, delete this._markers;
|
|
1192
|
+
}, f.prototype.getBounds = function() {
|
|
1193
|
+
for (var s = new BMap.Bounds(this._center, this._center), p = 0, y; y = this._markers[p]; p++)
|
|
1194
|
+
s.extend(y.getPosition());
|
|
1195
|
+
return s;
|
|
1196
|
+
}, f.prototype.getCenter = function() {
|
|
1197
|
+
return this._center;
|
|
1198
|
+
}, c;
|
|
1199
|
+
});
|
|
1200
|
+
})(wt);
|
|
1201
|
+
var le = wt.exports;
|
|
1202
|
+
const Y = [], ue = {
|
|
1203
|
+
name: "bml-marker-clusterer",
|
|
1204
|
+
mixins: [bt("markerClusterer")],
|
|
1205
|
+
provide() {
|
|
1206
|
+
return {
|
|
1207
|
+
Cluster: this
|
|
1208
|
+
};
|
|
1209
|
+
},
|
|
1210
|
+
props: {
|
|
1211
|
+
gridSize: {
|
|
1212
|
+
type: Number
|
|
1213
|
+
},
|
|
1214
|
+
maxZoom: {
|
|
1215
|
+
type: Number
|
|
1216
|
+
},
|
|
1217
|
+
minClusterSize: {
|
|
1218
|
+
type: Number
|
|
1219
|
+
},
|
|
1220
|
+
styles: {
|
|
1221
|
+
type: Array,
|
|
1222
|
+
default() {
|
|
1223
|
+
return [];
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
averageCenter: {
|
|
1227
|
+
type: Boolean,
|
|
1228
|
+
default: !1
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
data() {
|
|
1232
|
+
return {};
|
|
1233
|
+
},
|
|
1234
|
+
watch: {
|
|
1235
|
+
gridSize: {
|
|
1236
|
+
handler(t) {
|
|
1237
|
+
const { BMap: a, originInstance: i } = this;
|
|
1238
|
+
i.setGridSize(t);
|
|
1239
|
+
},
|
|
1240
|
+
deep: !0
|
|
1241
|
+
},
|
|
1242
|
+
maxZoom(t) {
|
|
1243
|
+
const { originInstance: a } = this;
|
|
1244
|
+
a.setMaxZoom(t);
|
|
1245
|
+
},
|
|
1246
|
+
minClusterSize: {
|
|
1247
|
+
handler(t) {
|
|
1248
|
+
const { BMap: a, originInstance: i } = this;
|
|
1249
|
+
i.setMinClusterSize(t);
|
|
1250
|
+
},
|
|
1251
|
+
deep: !0
|
|
1252
|
+
},
|
|
1253
|
+
styles: {
|
|
1254
|
+
handler(t) {
|
|
1255
|
+
const { BMap: a, originInstance: i } = this, h = JSON.parse(JSON.stringify(t)).map((_) => (_.size = _.size && R(a, _.size), _));
|
|
1256
|
+
i.setStyles(h);
|
|
1257
|
+
},
|
|
1258
|
+
deep: !0
|
|
1259
|
+
},
|
|
1260
|
+
averageCenter(t) {
|
|
1261
|
+
this.reload();
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
methods: {
|
|
1265
|
+
load() {
|
|
1266
|
+
const { BMap: t, map: a, gridSize: i, minClusterSize: h, maxZoom: _, styles: v, averageCenter: n } = this;
|
|
1267
|
+
this.originInstance = new le(a, {
|
|
1268
|
+
gridSize: i || 60,
|
|
1269
|
+
maxZoom: _,
|
|
1270
|
+
minClusterSize: h || 2,
|
|
1271
|
+
styles: v.map((r) => (r.size = R(t, r.size), r)),
|
|
1272
|
+
isAverageCenter: n
|
|
1273
|
+
}), this.$nextTick(() => {
|
|
1274
|
+
const r = Y.map((e) => e.originInstance).filter((e) => e instanceof t.Marker);
|
|
1275
|
+
this.originInstance.addMarkers(r);
|
|
1276
|
+
});
|
|
1277
|
+
},
|
|
1278
|
+
addMaker(t) {
|
|
1279
|
+
Y.push(t);
|
|
1280
|
+
},
|
|
1281
|
+
removeMaker(t) {
|
|
1282
|
+
Y.splice(Y.indexOf(t), 1);
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
beforeCreate() {
|
|
1286
|
+
this.preventChildrenRender = !0;
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
function de(t, a, i, h, _, v) {
|
|
1290
|
+
return D(), I("span", null, [
|
|
1291
|
+
q(t.$slots, "default")
|
|
1292
|
+
]);
|
|
1293
|
+
}
|
|
1294
|
+
var pe = /* @__PURE__ */ ot(ue, [["render", de]]), ce = { exports: {} };
|
|
1295
|
+
(function(t, a) {
|
|
1296
|
+
(function(i, h) {
|
|
1297
|
+
t.exports = h();
|
|
1298
|
+
})(H, function() {
|
|
1299
|
+
var i = {};
|
|
1300
|
+
i.dom = {}, i.dom.g = function(n) {
|
|
1301
|
+
return typeof n == "string" || n instanceof String ? document.getElementById(n) : n && n.nodeName && (n.nodeType == 1 || n.nodeType == 9) ? n : null;
|
|
1302
|
+
}, i.g = i.G = i.dom.g, i.lang = i.lang || {}, i.lang.isString = function(n) {
|
|
1303
|
+
return Object.prototype.toString.call(n) == "[object String]";
|
|
1304
|
+
}, i.isString = i.lang.isString, i.dom._g = function(n) {
|
|
1305
|
+
return i.lang.isString(n) ? document.getElementById(n) : n;
|
|
1306
|
+
}, i._g = i.dom._g, i.dom.getDocument = function(n) {
|
|
1307
|
+
return n = i.dom.g(n), n.nodeType == 9 ? n : n.ownerDocument || n.document;
|
|
1308
|
+
}, i.browser = i.browser || {}, i.browser.ie = i.ie = /msie (\d+\.\d+)/i.test(navigator.userAgent) ? document.documentMode || +RegExp.$1 : void 0, i.dom.getComputedStyle = function(n, r) {
|
|
1309
|
+
n = i.dom._g(n);
|
|
1310
|
+
var e = i.dom.getDocument(n), o;
|
|
1311
|
+
return e.defaultView && e.defaultView.getComputedStyle && (o = e.defaultView.getComputedStyle(n, null), o) ? o[r] || o.getPropertyValue(r) : "";
|
|
1312
|
+
}, i.dom._styleFixer = i.dom._styleFixer || {}, i.dom._styleFilter = i.dom._styleFilter || [], i.dom._styleFilter.filter = function(n, r, e) {
|
|
1313
|
+
for (var o = 0, d = i.dom._styleFilter, c; c = d[o]; o++)
|
|
1314
|
+
(c = c[e]) && (r = c(n, r));
|
|
1315
|
+
return r;
|
|
1316
|
+
}, i.string = i.string || {}, i.string.toCamelCase = function(n) {
|
|
1317
|
+
return n.indexOf("-") < 0 && n.indexOf("_") < 0 ? n : n.replace(/[-_][^-_]/g, function(r) {
|
|
1318
|
+
return r.charAt(1).toUpperCase();
|
|
1319
|
+
});
|
|
1320
|
+
}, i.dom.getStyle = function(n, r) {
|
|
1321
|
+
var e = i.dom;
|
|
1322
|
+
n = e.g(n), r = i.string.toCamelCase(r);
|
|
1323
|
+
var o = n.style[r] || (n.currentStyle ? n.currentStyle[r] : "") || e.getComputedStyle(n, r);
|
|
1324
|
+
if (!o) {
|
|
1325
|
+
var d = e._styleFixer[r];
|
|
1326
|
+
d && (o = d.get ? d.get(n) : i.dom.getStyle(n, d));
|
|
1327
|
+
}
|
|
1328
|
+
return (d = e._styleFilter) && (o = d.filter(r, o, "get")), o;
|
|
1329
|
+
}, i.getStyle = i.dom.getStyle, i.dom._NAME_ATTRS = (function() {
|
|
1330
|
+
var n = {
|
|
1331
|
+
cellpadding: "cellPadding",
|
|
1332
|
+
cellspacing: "cellSpacing",
|
|
1333
|
+
colspan: "colSpan",
|
|
1334
|
+
rowspan: "rowSpan",
|
|
1335
|
+
valign: "vAlign",
|
|
1336
|
+
usemap: "useMap",
|
|
1337
|
+
frameborder: "frameBorder"
|
|
1338
|
+
};
|
|
1339
|
+
return i.browser.ie < 8 ? (n.for = "htmlFor", n.class = "className") : (n.htmlFor = "for", n.className = "class"), n;
|
|
1340
|
+
})(), i.dom.setAttr = function(n, r, e) {
|
|
1341
|
+
return n = i.dom.g(n), r == "style" ? n.style.cssText = e : (r = i.dom._NAME_ATTRS[r] || r, n.setAttribute(r, e)), n;
|
|
1342
|
+
}, i.setAttr = i.dom.setAttr, i.dom.setAttrs = function(n, r) {
|
|
1343
|
+
n = i.dom.g(n);
|
|
1344
|
+
for (var e in r)
|
|
1345
|
+
i.dom.setAttr(n, e, r[e]);
|
|
1346
|
+
return n;
|
|
1347
|
+
}, i.setAttrs = i.dom.setAttrs, i.dom.create = function(n, r) {
|
|
1348
|
+
var e = document.createElement(n), o = r || {};
|
|
1349
|
+
return i.dom.setAttrs(e, o);
|
|
1350
|
+
}, i.object = i.object || {}, i.extend = i.object.extend = function(n, r) {
|
|
1351
|
+
for (var e in r)
|
|
1352
|
+
r.hasOwnProperty(e) && (n[e] = r[e]);
|
|
1353
|
+
return n;
|
|
1354
|
+
};
|
|
1355
|
+
var h = function(n, r, e) {
|
|
1356
|
+
try {
|
|
1357
|
+
BMap;
|
|
1358
|
+
} catch (o) {
|
|
1359
|
+
throw Error("Baidu Map JS API is not ready yet!");
|
|
1360
|
+
}
|
|
1361
|
+
!r || r.length < 1 || (this._map = n, this._path = r, this.i = 0, this._setTimeoutQuene = [], this._projection = this._map.getMapType().getProjection(), this._opts = {
|
|
1362
|
+
icon: null,
|
|
1363
|
+
speed: 4e3,
|
|
1364
|
+
defaultContent: "",
|
|
1365
|
+
showInfoWindow: !1
|
|
1366
|
+
}, this._setOptions(e), this._rotation = 0, !this._opts.icon instanceof BMap.Icon && (this._opts.icon = defaultIcon));
|
|
1367
|
+
};
|
|
1368
|
+
h.prototype._setOptions = function(n) {
|
|
1369
|
+
if (n)
|
|
1370
|
+
for (var r in n)
|
|
1371
|
+
n.hasOwnProperty(r) && (this._opts[r] = n[r]);
|
|
1372
|
+
}, h.prototype.start = function() {
|
|
1373
|
+
var n = this, r = n._path.length;
|
|
1374
|
+
if (this._opts.onstart && this._opts.onstart(n), n.i && n.i < r - 1)
|
|
1375
|
+
if (n._fromPause)
|
|
1376
|
+
n._fromStop || n._moveNext(++n.i);
|
|
1377
|
+
else return;
|
|
1378
|
+
else
|
|
1379
|
+
!n._marker && n._addMarker(), n._timeoutFlag = setTimeout(function() {
|
|
1380
|
+
!n._overlay && n._addInfoWin(), n._moveNext(n.i);
|
|
1381
|
+
}, 400);
|
|
1382
|
+
this._fromPause = !1, this._fromStop = !1;
|
|
1383
|
+
}, h.prototype.stop = function() {
|
|
1384
|
+
this.i = 0, this._fromStop = !0, clearInterval(this._intervalFlag), this._clearTimeout();
|
|
1385
|
+
for (var n = 0, r = this._opts.landmarkPois, e = r.length; n < e; n++)
|
|
1386
|
+
r[n].bShow = !1;
|
|
1387
|
+
this._opts.onstop && this._opts.onstop(this);
|
|
1388
|
+
}, h.prototype.pause = function() {
|
|
1389
|
+
clearInterval(this._intervalFlag), this._fromPause = !0, this._clearTimeout(), this._opts.onpause && this._opts.onpause(this);
|
|
1390
|
+
}, h.prototype.hideInfoWindow = function() {
|
|
1391
|
+
this._opts.showInfoWindow = !1, this._overlay && (this._overlay._div.style.visibility = "hidden");
|
|
1392
|
+
}, h.prototype.showInfoWindow = function() {
|
|
1393
|
+
this._opts.showInfoWindow = !0, this._overlay && (this._overlay._div.style.visibility = "visible");
|
|
1394
|
+
}, h.prototype.dispose = function() {
|
|
1395
|
+
clearInterval(this._intervalFlag), this._setTimeoutQuene && this._clearTimeout(), this._map && (this._map.removeOverlay(this._overlay), this._map.removeOverlay(this._marker));
|
|
1396
|
+
}, i.object.extend(h.prototype, {
|
|
1397
|
+
_addMarker: function(n) {
|
|
1398
|
+
this._marker && (this.stop(), this._map.removeOverlay(this._marker), clearTimeout(this._timeoutFlag)), this._overlay && this._map.removeOverlay(this._overlay);
|
|
1399
|
+
var r = new BMap.Marker(this._path[0]);
|
|
1400
|
+
this._opts.icon && r.setIcon(this._opts.icon), this._map.addOverlay(r), r.setAnimation(BMAP_ANIMATION_DROP), this._marker = r;
|
|
1401
|
+
},
|
|
1402
|
+
_addInfoWin: function() {
|
|
1403
|
+
var n = this;
|
|
1404
|
+
!_.prototype.initialize && v();
|
|
1405
|
+
var r = new _(n._marker.getPosition(), n._opts.defaultContent);
|
|
1406
|
+
r.setRelatedClass(this), this._overlay = r, this._map.addOverlay(r), this._opts.showInfoWindow ? this.showInfoWindow() : this.hideInfoWindow();
|
|
1407
|
+
},
|
|
1408
|
+
_getMercator: function(n) {
|
|
1409
|
+
return this._map.getMapType().getProjection().lngLatToPoint(n);
|
|
1410
|
+
},
|
|
1411
|
+
_getDistance: function(n, r) {
|
|
1412
|
+
return Math.sqrt(Math.pow(n.x - r.x, 2) + Math.pow(n.y - r.y, 2));
|
|
1413
|
+
},
|
|
1414
|
+
_move: function(n, r, e) {
|
|
1415
|
+
var o = this, d = 0, c = 10, f = this._opts.speed / (1e3 / c), s = this._projection.lngLatToPoint(n), p = this._projection.lngLatToPoint(r), y = Math.round(o._getDistance(s, p) / f);
|
|
1416
|
+
if (y < 1) {
|
|
1417
|
+
o._moveNext(++o.i);
|
|
1418
|
+
return;
|
|
1419
|
+
}
|
|
1420
|
+
o._intervalFlag = setInterval(function() {
|
|
1421
|
+
if (d >= y) {
|
|
1422
|
+
if (clearInterval(o._intervalFlag), o.i > o._path.length)
|
|
1423
|
+
return;
|
|
1424
|
+
o._moveNext(++o.i), o._opts.onmove(o);
|
|
1425
|
+
} else {
|
|
1426
|
+
d++;
|
|
1427
|
+
var M = e(s.x, p.x, d, y), u = e(s.y, p.y, d, y), C = o._projection.pointToLngLat(new BMap.Pixel(M, u));
|
|
1428
|
+
if (d == 1) {
|
|
1429
|
+
var S = null;
|
|
1430
|
+
o.i - 1 >= 0 && (S = o._path[o.i - 1]), o._opts.enableRotation == !0 && o.setRotation(S, n, r), o._opts.autoView && (o._map.getBounds().containsPoint(C) || o._map.setCenter(C));
|
|
1431
|
+
}
|
|
1432
|
+
o._marker.setPosition(C), o._setInfoWin(C);
|
|
1433
|
+
}
|
|
1434
|
+
}, c);
|
|
1435
|
+
},
|
|
1436
|
+
setRotation: function(n, r, e) {
|
|
1437
|
+
var o = this, d = 0;
|
|
1438
|
+
if (r = o._map.pointToPixel(r), e = o._map.pointToPixel(e), e.x != r.x) {
|
|
1439
|
+
var c = (e.y - r.y) / (e.x - r.x), f = Math.atan(c);
|
|
1440
|
+
d = f * 360 / (2 * Math.PI), e.x < r.x ? d = -d + 90 + 90 : d = -d, o._marker.setRotation(-d);
|
|
1441
|
+
} else {
|
|
1442
|
+
var s = e.y - r.y, p = 0;
|
|
1443
|
+
s > 0 ? p = -1 : p = 1, o._marker.setRotation(-p * 90);
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
linePixellength: function(n, r) {
|
|
1447
|
+
return Math.sqrt(Math.abs(n.x - r.x) * Math.abs(n.x - r.x) + Math.abs(n.y - r.y) * Math.abs(n.y - r.y));
|
|
1448
|
+
},
|
|
1449
|
+
pointToPoint: function(n, r) {
|
|
1450
|
+
return Math.abs(n.x - r.x) * Math.abs(n.x - r.x) + Math.abs(n.y - r.y) * Math.abs(n.y - r.y);
|
|
1451
|
+
},
|
|
1452
|
+
_moveNext: function(n) {
|
|
1453
|
+
var r = this;
|
|
1454
|
+
n < this._path.length - 1 ? r._move(r._path[n], r._path[n + 1], r._tween.linear) : r.stop();
|
|
1455
|
+
},
|
|
1456
|
+
moveNext: function(n) {
|
|
1457
|
+
var r = this;
|
|
1458
|
+
n < this._path.length - 1 ? r._move(r._path[n], r._path[n + 1], r._tween.linear) : r.stop();
|
|
1459
|
+
},
|
|
1460
|
+
_setInfoWin: function(n) {
|
|
1461
|
+
var r = this;
|
|
1462
|
+
r._overlay.setPosition(n, r._marker.getIcon().size);
|
|
1463
|
+
var e = r._troughPointIndex(n);
|
|
1464
|
+
e != -1 ? (clearInterval(r._intervalFlag), r._overlay.setHtml(r._opts.landmarkPois[e].html), r._overlay.setPosition(n, r._marker.getIcon().size), r._pauseForView(e)) : r._overlay.setHtml(r._opts.defaultContent);
|
|
1465
|
+
},
|
|
1466
|
+
_pauseForView: function(n) {
|
|
1467
|
+
var r = this, e = setTimeout(function() {
|
|
1468
|
+
r._moveNext(++r.i);
|
|
1469
|
+
}, r._opts.landmarkPois[n].pauseTime * 1e3);
|
|
1470
|
+
r._setTimeoutQuene.push(e);
|
|
1471
|
+
},
|
|
1472
|
+
_clearTimeout: function() {
|
|
1473
|
+
for (var n in this._setTimeoutQuene)
|
|
1474
|
+
clearTimeout(this._setTimeoutQuene[n]);
|
|
1475
|
+
this._setTimeoutQuene.length = 0;
|
|
1476
|
+
},
|
|
1477
|
+
_tween: {
|
|
1478
|
+
linear: function(n, r, e, o) {
|
|
1479
|
+
var d = n, c = r - n, f = e, s = o;
|
|
1480
|
+
return c * f / s + d;
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
_troughPointIndex: function(n) {
|
|
1484
|
+
for (var r = this._opts.landmarkPois, e, o = 0, d = r.length; o < d; o++)
|
|
1485
|
+
if (!r[o].bShow && (e = this._map.getDistance(new BMap.Point(r[o].lng, r[o].lat), n), e < 10))
|
|
1486
|
+
return r[o].bShow = !0, o;
|
|
1487
|
+
return -1;
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1490
|
+
function _(n, r) {
|
|
1491
|
+
this._point = n, this._html = r;
|
|
1492
|
+
}
|
|
1493
|
+
function v() {
|
|
1494
|
+
_.prototype = new BMap.Overlay(), _.prototype.initialize = function(n) {
|
|
1495
|
+
var r = this._div = i.dom.create("div", { style: "border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;" });
|
|
1496
|
+
return r.innerHTML = this._html, n.getPanes().floatPane.appendChild(r), this._map = n, r;
|
|
1497
|
+
}, _.prototype.draw = function() {
|
|
1498
|
+
this.setPosition(this.lushuMain._marker.getPosition(), this.lushuMain._marker.getIcon().size);
|
|
1499
|
+
}, i.object.extend(_.prototype, {
|
|
1500
|
+
setPosition: function(n, r) {
|
|
1501
|
+
var e = this._map.pointToOverlayPixel(n), o = i.dom.getStyle(this._div, "width"), d = i.dom.getStyle(this._div, "height"), c = parseInt(this._div.clientWidth || o, 10);
|
|
1502
|
+
parseInt(this._div.clientHeight || d, 10), this._div.style.left = e.x - c / 2 + "px", this._div.style.bottom = -(e.y - r.height) + "px";
|
|
1503
|
+
},
|
|
1504
|
+
setHtml: function(n) {
|
|
1505
|
+
this._div.innerHTML = n;
|
|
1506
|
+
},
|
|
1507
|
+
setRelatedClass: function(n) {
|
|
1508
|
+
this.lushuMain = n;
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
return h;
|
|
1513
|
+
});
|
|
1514
|
+
})(ce);
|
|
1515
|
+
var he = { exports: {} };
|
|
1516
|
+
(function(t, a) {
|
|
1517
|
+
(function(i, h) {
|
|
1518
|
+
t.exports = h();
|
|
1519
|
+
})(H, function() {
|
|
1520
|
+
function i(v, n, r) {
|
|
1521
|
+
var e, o, d = v.prototype, c = new Function();
|
|
1522
|
+
c.prototype = n.prototype, o = v.prototype = new c();
|
|
1523
|
+
for (e in d)
|
|
1524
|
+
o[e] = d[e];
|
|
1525
|
+
v.prototype.constructor = v, v.superClass = n.prototype, o._className = r;
|
|
1526
|
+
}
|
|
1527
|
+
var h = (function() {
|
|
1528
|
+
var v = function(o) {
|
|
1529
|
+
var d = {
|
|
1530
|
+
data: [],
|
|
1531
|
+
heatmap: o
|
|
1532
|
+
};
|
|
1533
|
+
this.max = 1, this.get = function(c) {
|
|
1534
|
+
return d[c];
|
|
1535
|
+
}, this.set = function(c, f) {
|
|
1536
|
+
d[c] = f;
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
v.prototype = {
|
|
1540
|
+
addDataPoint: function(e, o) {
|
|
1541
|
+
if (!(e < 0 || o < 0)) {
|
|
1542
|
+
var d = this, c = d.get("heatmap"), f = d.get("data");
|
|
1543
|
+
if (f[e] || (f[e] = []), f[e][o] || (f[e][o] = 0), f[e][o] += arguments.length < 3 ? 1 : arguments[2], d.set("data", f), d.max < f[e][o]) {
|
|
1544
|
+
c.get("actx").clearRect(0, 0, c.get("width"), c.get("height")), d.setDataSet({ max: f[e][o], data: f }, !0);
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
c.drawAlpha(e, o, f[e][o], !0);
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
setDataSet: function(e, o) {
|
|
1551
|
+
var d = this, c = d.get("heatmap"), f = [], s = e.data, p = s.length;
|
|
1552
|
+
if (c.clear(), this.max = e.max, c.get("legend") && c.get("legend").update(e.max), o != null && o) {
|
|
1553
|
+
for (var y in s)
|
|
1554
|
+
if (y !== void 0)
|
|
1555
|
+
for (var M in s[y])
|
|
1556
|
+
M !== void 0 && c.drawAlpha(y, M, s[y][M], !1);
|
|
1557
|
+
} else
|
|
1558
|
+
for (; p--; ) {
|
|
1559
|
+
var u = s[p];
|
|
1560
|
+
c.drawAlpha(u.x, u.y, u.count, !1), f[u.x] || (f[u.x] = []), f[u.x][u.y] || (f[u.x][u.y] = 0), f[u.x][u.y] = u.count;
|
|
1561
|
+
}
|
|
1562
|
+
c.colorize(), this.set("data", s);
|
|
1563
|
+
},
|
|
1564
|
+
exportDataSet: function() {
|
|
1565
|
+
var e = this, o = e.get("data"), d = [];
|
|
1566
|
+
for (var c in o)
|
|
1567
|
+
if (c !== void 0)
|
|
1568
|
+
for (var f in o[c])
|
|
1569
|
+
f !== void 0 && d.push({ x: parseInt(c, 10), y: parseInt(f, 10), count: o[c][f] });
|
|
1570
|
+
return { max: e.max, data: d };
|
|
1571
|
+
},
|
|
1572
|
+
generateRandomDataSet: function(e) {
|
|
1573
|
+
var o = this.get("heatmap"), d = o.get("width"), c = o.get("height"), f = {}, s = Math.floor(Math.random() * 1e3 + 1);
|
|
1574
|
+
f.max = s;
|
|
1575
|
+
for (var p = []; e--; )
|
|
1576
|
+
p.push({ x: Math.floor(Math.random() * d + 1), y: Math.floor(Math.random() * c + 1), count: Math.floor(Math.random() * s + 1) });
|
|
1577
|
+
f.data = p, this.setDataSet(f);
|
|
1578
|
+
}
|
|
1579
|
+
};
|
|
1580
|
+
var n = function(o) {
|
|
1581
|
+
this.config = o;
|
|
1582
|
+
var d = {
|
|
1583
|
+
element: null,
|
|
1584
|
+
labelsEl: null,
|
|
1585
|
+
gradientCfg: null,
|
|
1586
|
+
ctx: null
|
|
1587
|
+
};
|
|
1588
|
+
this.get = function(c) {
|
|
1589
|
+
return d[c];
|
|
1590
|
+
}, this.set = function(c, f) {
|
|
1591
|
+
d[c] = f;
|
|
1592
|
+
}, this.init();
|
|
1593
|
+
};
|
|
1594
|
+
n.prototype = {
|
|
1595
|
+
init: function() {
|
|
1596
|
+
var e = this, o = e.config, d = o.title || "Legend", c = o.position, f = o.offset || 10;
|
|
1597
|
+
o.gradient;
|
|
1598
|
+
var s = document.createElement("ul"), p, y, M = "";
|
|
1599
|
+
e.processGradientObject(), c.indexOf("t") > -1 ? M += "top:" + f + "px;" : M += "bottom:" + f + "px;", c.indexOf("l") > -1 ? M += "left:" + f + "px;" : M += "right:" + f + "px;", p = document.createElement("div"), p.style.cssText = "border-radius:5px;position:absolute;" + M + "font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;", p.innerHTML = "<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>" + d + "</h3>", s.style.cssText = "position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;", y = document.createElement("div"), y.style.cssText = ["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(", e.createGradientImage(), ");"].join(""), p.appendChild(s), p.appendChild(y), e.set("element", p), e.set("labelsEl", s), e.update(1);
|
|
1600
|
+
},
|
|
1601
|
+
processGradientObject: function() {
|
|
1602
|
+
var e = this, o = this.config.gradient, d = [];
|
|
1603
|
+
for (var c in o)
|
|
1604
|
+
o.hasOwnProperty(c) && d.push({ stop: c, value: o[c] });
|
|
1605
|
+
d.sort(function(f, s) {
|
|
1606
|
+
return f.stop - s.stop;
|
|
1607
|
+
}), d.unshift({ stop: 0, value: "rgba(0,0,0,0)" }), e.set("gradientArr", d);
|
|
1608
|
+
},
|
|
1609
|
+
createGradientImage: function() {
|
|
1610
|
+
var e = this, o = e.get("gradientArr"), d = o.length, c = document.createElement("canvas"), f = c.getContext("2d"), s;
|
|
1611
|
+
c.width = "256", c.height = "15", s = f.createLinearGradient(0, 5, 256, 10);
|
|
1612
|
+
for (var p = 0; p < d; p++)
|
|
1613
|
+
s.addColorStop(1 / (d - 1) * p, o[p].value);
|
|
1614
|
+
f.fillStyle = s, f.fillRect(0, 5, 256, 10), f.strokeStyle = "black", f.beginPath();
|
|
1615
|
+
for (var p = 0; p < d; p++)
|
|
1616
|
+
f.moveTo((1 / (d - 1) * p * 256 >> 0) + 0.5, 0), f.lineTo((1 / (d - 1) * p * 256 >> 0) + 0.5, p == 0 ? 15 : 5);
|
|
1617
|
+
return f.moveTo(255.5, 0), f.lineTo(255.5, 15), f.moveTo(255.5, 4.5), f.lineTo(0, 4.5), f.stroke(), e.set("ctx", f), c.toDataURL();
|
|
1618
|
+
},
|
|
1619
|
+
getElement: function() {
|
|
1620
|
+
return this.get("element");
|
|
1621
|
+
},
|
|
1622
|
+
update: function(e) {
|
|
1623
|
+
for (var o = this, d = o.get("gradientArr"), c = o.get("ctx"), f = o.get("labelsEl"), s, p = "", y, M = 0; M < d.length; M++)
|
|
1624
|
+
s = e * d[M].stop >> 0, y = c.measureText(s).width / 2 >> 0, M == 0 && (y = 0), M == d.length - 1 && (y *= 2), p += '<li style="position:absolute;left:' + (((1 / (d.length - 1) * M * 256 || 0) >> 0) - y + 0.5) + 'px">' + s + "</li>";
|
|
1625
|
+
f.innerHTML = p;
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1628
|
+
var r = function(o) {
|
|
1629
|
+
var d = {
|
|
1630
|
+
radius: 40,
|
|
1631
|
+
element: {},
|
|
1632
|
+
canvas: {},
|
|
1633
|
+
acanvas: {},
|
|
1634
|
+
ctx: {},
|
|
1635
|
+
actx: {},
|
|
1636
|
+
legend: null,
|
|
1637
|
+
visible: !0,
|
|
1638
|
+
width: 0,
|
|
1639
|
+
height: 0,
|
|
1640
|
+
max: !1,
|
|
1641
|
+
gradient: !1,
|
|
1642
|
+
opacity: 180,
|
|
1643
|
+
premultiplyAlpha: !1,
|
|
1644
|
+
bounds: {
|
|
1645
|
+
l: 1e3,
|
|
1646
|
+
r: 0,
|
|
1647
|
+
t: 1e3,
|
|
1648
|
+
b: 0
|
|
1649
|
+
},
|
|
1650
|
+
debug: !1
|
|
1651
|
+
};
|
|
1652
|
+
this.store = new v(this), this.get = function(c) {
|
|
1653
|
+
return d[c];
|
|
1654
|
+
}, this.set = function(c, f) {
|
|
1655
|
+
d[c] = f;
|
|
1656
|
+
}, this.configure(o), this.init();
|
|
1657
|
+
};
|
|
1658
|
+
return r.prototype = {
|
|
1659
|
+
configure: function(e) {
|
|
1660
|
+
var o = this;
|
|
1661
|
+
if (o.set("radius", e.radius || 40), o.set("element", e.element instanceof Object ? e.element : document.getElementById(e.element)), o.set("visible", e.visible != null ? e.visible : !0), o.set("max", e.max || !1), o.set("gradient", e.gradient || { 0.45: "rgb(0,0,255)", 0.55: "rgb(0,255,255)", 0.65: "rgb(0,255,0)", 0.95: "yellow", 1: "rgb(255,0,0)" }), o.set("opacity", parseInt(255 / (100 / e.opacity), 10) || 180), o.set("width", e.width || 0), o.set("height", e.height || 0), o.set("debug", e.debug), e.legend) {
|
|
1662
|
+
var d = e.legend;
|
|
1663
|
+
d.gradient = o.get("gradient"), o.set("legend", new n(d));
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
resize: function() {
|
|
1667
|
+
var e = this, o = e.get("element"), d = e.get("canvas"), c = e.get("acanvas");
|
|
1668
|
+
d.width = c.width = e.get("width") || o.style.width.replace(/px/, "") || e.getWidth(o), this.set("width", d.width), d.height = c.height = e.get("height") || o.style.height.replace(/px/, "") || e.getHeight(o), this.set("height", d.height);
|
|
1669
|
+
},
|
|
1670
|
+
init: function() {
|
|
1671
|
+
var e = this, o = document.createElement("canvas"), d = document.createElement("canvas"), c = o.getContext("2d"), f = d.getContext("2d"), s = e.get("element");
|
|
1672
|
+
e.initColorPalette(), e.set("canvas", o), e.set("ctx", c), e.set("acanvas", d), e.set("actx", f), e.resize(), o.style.cssText = d.style.cssText = "position:absolute;top:0;left:0;z-index:10000000;", e.get("visible") || (o.style.display = "none"), s.appendChild(o), e.get("legend") && s.appendChild(e.get("legend").getElement()), e.get("debug") && document.body.appendChild(d), f.shadowOffsetX = 15e3, f.shadowOffsetY = 15e3, f.shadowBlur = 15;
|
|
1673
|
+
},
|
|
1674
|
+
initColorPalette: function() {
|
|
1675
|
+
var e = this, o = document.createElement("canvas"), d = e.get("gradient"), c, f, s;
|
|
1676
|
+
o.width = "1", o.height = "256", c = o.getContext("2d"), f = c.createLinearGradient(0, 0, 1, 256), s = c.getImageData(0, 0, 1, 1), s.data[0] = s.data[3] = 64, s.data[1] = s.data[2] = 0, c.putImageData(s, 0, 0), s = c.getImageData(0, 0, 1, 1), e.set("premultiplyAlpha", s.data[0] < 60 || s.data[0] > 70);
|
|
1677
|
+
for (var p in d)
|
|
1678
|
+
f.addColorStop(p, d[p]);
|
|
1679
|
+
c.fillStyle = f, c.fillRect(0, 0, 1, 256), e.set("gradient", c.getImageData(0, 0, 1, 256).data);
|
|
1680
|
+
},
|
|
1681
|
+
getWidth: function(e) {
|
|
1682
|
+
var o = e.offsetWidth;
|
|
1683
|
+
return e.style.paddingLeft && (o += e.style.paddingLeft), e.style.paddingRight && (o += e.style.paddingRight), o;
|
|
1684
|
+
},
|
|
1685
|
+
getHeight: function(e) {
|
|
1686
|
+
var o = e.offsetHeight;
|
|
1687
|
+
return e.style.paddingTop && (o += e.style.paddingTop), e.style.paddingBottom && (o += e.style.paddingBottom), o;
|
|
1688
|
+
},
|
|
1689
|
+
colorize: function(e, o) {
|
|
1690
|
+
var d = this, c = d.get("width"), f = d.get("radius"), s = d.get("height"), p = d.get("actx"), y = d.get("ctx"), M = f * 3, u = d.get("premultiplyAlpha"), C = d.get("gradient"), S = d.get("opacity"), z = d.get("bounds"), B, l, m, g, w, b, O, x, k;
|
|
1691
|
+
e != null && o != null ? (e + M > c && (e = c - M), e < 0 && (e = 0), o < 0 && (o = 0), o + M > s && (o = s - M), B = e, l = o, g = e + M, m = o + M) : (z.l < 0 ? B = 0 : B = z.l, z.r > c ? g = c : g = z.r, z.t < 0 ? l = 0 : l = z.t, z.b > s ? m = s : m = z.b), w = p.getImageData(B, l, g - B, m - l), b = w.data.length;
|
|
1692
|
+
for (var P = 3; P < b; P += 4)
|
|
1693
|
+
O = w.data[P], x = O * 4, x && (k = O < S ? O : S, w.data[P - 3] = C[x], w.data[P - 2] = C[x + 1], w.data[P - 1] = C[x + 2], u && (w.data[P - 3] /= 255 / k, w.data[P - 2] /= 255 / k, w.data[P - 1] /= 255 / k), w.data[P] = k);
|
|
1694
|
+
y.putImageData(w, B, l);
|
|
1695
|
+
},
|
|
1696
|
+
drawAlpha: function(e, o, d, c) {
|
|
1697
|
+
var f = this, s = f.get("radius"), p = f.get("actx");
|
|
1698
|
+
f.get("max");
|
|
1699
|
+
var y = f.get("bounds"), M = e - 1.5 * s >> 0, u = o - 1.5 * s >> 0, C = e + 1.5 * s >> 0, S = o + 1.5 * s >> 0;
|
|
1700
|
+
p.shadowColor = "rgba(0,0,0," + (d ? d / f.store.max : "0.1") + ")", p.shadowOffsetX = 15e3, p.shadowOffsetY = 15e3, p.shadowBlur = 15, p.beginPath(), p.arc(e - 15e3, o - 15e3, s, 0, Math.PI * 2, !0), p.closePath(), p.fill(), c ? f.colorize(M, u) : (M < y.l && (y.l = M), u < y.t && (y.t = u), C > y.r && (y.r = C), S > y.b && (y.b = S));
|
|
1701
|
+
},
|
|
1702
|
+
toggleDisplay: function() {
|
|
1703
|
+
var e = this, o = e.get("visible"), d = e.get("canvas");
|
|
1704
|
+
o ? d.style.display = "none" : d.style.display = "block", e.set("visible", !o);
|
|
1705
|
+
},
|
|
1706
|
+
getImageData: function() {
|
|
1707
|
+
return this.get("canvas").toDataURL();
|
|
1708
|
+
},
|
|
1709
|
+
clear: function() {
|
|
1710
|
+
var e = this, o = e.get("width"), d = e.get("height");
|
|
1711
|
+
e.store.set("data", []), e.get("ctx").clearRect(0, 0, o, d), e.get("actx").clearRect(0, 0, o, d);
|
|
1712
|
+
},
|
|
1713
|
+
cleanup: function() {
|
|
1714
|
+
var e = this;
|
|
1715
|
+
e.get("element").removeChild(e.get("canvas"));
|
|
1716
|
+
}
|
|
1717
|
+
}, {
|
|
1718
|
+
create: function(e) {
|
|
1719
|
+
return new r(e);
|
|
1720
|
+
},
|
|
1721
|
+
util: {
|
|
1722
|
+
mousePosition: function(e) {
|
|
1723
|
+
var o, d;
|
|
1724
|
+
if (e.layerX ? (o = e.layerX, d = e.layerY) : e.offsetX && (o = e.offsetX, d = e.offsetY), typeof o != "undefined")
|
|
1725
|
+
return [o, d];
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
})(), _ = function(v) {
|
|
1730
|
+
try {
|
|
1731
|
+
BMap;
|
|
1732
|
+
} catch (r) {
|
|
1733
|
+
throw Error("Baidu Map JS API is not ready yet!");
|
|
1734
|
+
}
|
|
1735
|
+
if (!_._isExtended) {
|
|
1736
|
+
_._isExtended = !0, i(_, BMap.Overlay, "HeatmapOverlay");
|
|
1737
|
+
var n = new _(v);
|
|
1738
|
+
this.__proto__ = n.__proto__;
|
|
1739
|
+
}
|
|
1740
|
+
this.conf = v, this.heatmap = null, this.latlngs = [], this.bounds = null, this._moveendHandler = this._moveendHandler.bind(this);
|
|
1741
|
+
};
|
|
1742
|
+
return _.prototype.initialize = function(v) {
|
|
1743
|
+
this._map = v;
|
|
1744
|
+
var n = document.createElement("div");
|
|
1745
|
+
return n.style.position = "absolute", n.style.top = 0, n.style.left = 0, n.style.border = 0, n.style.width = this._map.getSize().width + "px", n.style.height = this._map.getSize().height + "px", this.conf.element = n, v.getPanes().mapPane.appendChild(n), this.heatmap = h.create(this.conf), this._div = n, n;
|
|
1746
|
+
}, _.prototype.draw = function() {
|
|
1747
|
+
var v = this._map.getBounds();
|
|
1748
|
+
if (!v.equals(this.bounds)) {
|
|
1749
|
+
this.bounds = v;
|
|
1750
|
+
var n = this._map.pointToOverlayPixel(v.getNorthEast()), r = this._map.pointToOverlayPixel(v.getSouthWest());
|
|
1751
|
+
if (!(!n || !r)) {
|
|
1752
|
+
var e = n.y, o = r.x, d = r.y - n.y, c = n.x - r.x;
|
|
1753
|
+
if (this.conf.element.style.left = o + "px", this.conf.element.style.top = e + "px", this.conf.element.style.width = c + "px", this.conf.element.style.height = d + "px", this.heatmap.store.get("heatmap").resize(), this.latlngs.length > 0) {
|
|
1754
|
+
this.heatmap.clear();
|
|
1755
|
+
for (var f = this.latlngs.length, s = {
|
|
1756
|
+
max: this.heatmap.store.max,
|
|
1757
|
+
data: []
|
|
1758
|
+
}; f--; ) {
|
|
1759
|
+
var p = this.latlngs[f].latlng;
|
|
1760
|
+
if (v.containsPoint(p)) {
|
|
1761
|
+
var y = this._map.pointToOverlayPixel(p), M = new BMap.Pixel(y.x - o, y.y - e), u = this.pixelTransform(M);
|
|
1762
|
+
s.data.push({
|
|
1763
|
+
x: u.x,
|
|
1764
|
+
y: u.y,
|
|
1765
|
+
count: this.latlngs[f].c
|
|
1766
|
+
});
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
this.heatmap.store.setDataSet(s);
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
}, _.prototype.pixelTransform = function(v) {
|
|
1774
|
+
for (var n = this.heatmap.get("width"), r = this.heatmap.get("height"); v.x < 0; )
|
|
1775
|
+
v.x += n;
|
|
1776
|
+
for (; v.x > n; )
|
|
1777
|
+
v.x -= n;
|
|
1778
|
+
for (; v.y < 0; )
|
|
1779
|
+
v.y += r;
|
|
1780
|
+
for (; v.y > r; )
|
|
1781
|
+
v.y -= r;
|
|
1782
|
+
return v.x = v.x >> 0, v.y = v.y >> 0, v;
|
|
1783
|
+
}, _.prototype._moveendHandler = function(v) {
|
|
1784
|
+
this.setDataSet(this._data), delete this._data, this._map.removeEventListener("moveend", this._moveendHandler);
|
|
1785
|
+
}, _.prototype.setDataSet = function(v) {
|
|
1786
|
+
if (this._map) {
|
|
1787
|
+
var n = this._map.getBounds(), r = this._map.pointToOverlayPixel(n.getNorthEast()), e = this._map.pointToOverlayPixel(n.getSouthWest());
|
|
1788
|
+
(!r || !e) && (this._data = v, this._map.addEventListener("moveend", this._moveendHandler));
|
|
1789
|
+
var o = {
|
|
1790
|
+
max: v.max,
|
|
1791
|
+
data: []
|
|
1792
|
+
}, d = v.data, c = d.length;
|
|
1793
|
+
for (this.latlngs = []; c--; ) {
|
|
1794
|
+
var f = new BMap.Point(d[c].lng, d[c].lat);
|
|
1795
|
+
if (this.latlngs.push({
|
|
1796
|
+
latlng: f,
|
|
1797
|
+
c: d[c].count
|
|
1798
|
+
}), !!n.containsPoint(f)) {
|
|
1799
|
+
var s = this._map.pointToOverlayPixel(f), p = this._map.pointToOverlayPixel(n.getSouthWest()).x, y = this._map.pointToOverlayPixel(n.getNorthEast()).y, M = new BMap.Pixel(s.x - p, s.y - y), u = this.pixelTransform(M);
|
|
1800
|
+
o.data.push({
|
|
1801
|
+
x: u.x,
|
|
1802
|
+
y: u.y,
|
|
1803
|
+
count: d[c].count
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
this.heatmap.clear(), this.heatmap.store.setDataSet(o);
|
|
1808
|
+
}
|
|
1809
|
+
}, _.prototype.addDataPoint = function(v, n, r) {
|
|
1810
|
+
var e = new BMap.Point(v, n), o = this.pixelTransform(this._map.pointToOverlayPixel(e));
|
|
1811
|
+
this.heatmap.store.addDataPoint(o.x, o.y, r), this.latlngs.push({
|
|
1812
|
+
latlng: e,
|
|
1813
|
+
c: r
|
|
1814
|
+
});
|
|
1815
|
+
}, _.prototype.toggle = function() {
|
|
1816
|
+
this.heatmap.toggleDisplay();
|
|
1817
|
+
}, _;
|
|
1818
|
+
});
|
|
1819
|
+
})(he);
|
|
1820
|
+
var me = { exports: {} };
|
|
1821
|
+
(function(t, a) {
|
|
1822
|
+
(function(i, h) {
|
|
1823
|
+
t.exports = h();
|
|
1824
|
+
})(H, function() {
|
|
1825
|
+
function i(v, n) {
|
|
1826
|
+
try {
|
|
1827
|
+
BMap;
|
|
1828
|
+
} catch (o) {
|
|
1829
|
+
throw Error("Baidu Map JS API is not ready yet!");
|
|
1830
|
+
}
|
|
1831
|
+
var r = h(v), e = new BMap.Polyline(r, n);
|
|
1832
|
+
return e.addEventListener("lineupdate", function() {
|
|
1833
|
+
this.isEditing && this.enableEditing();
|
|
1834
|
+
}), e.cornerPoints = v, e.editMarkers = [], e.enableEditing = function() {
|
|
1835
|
+
var o = this;
|
|
1836
|
+
if (o.map) {
|
|
1837
|
+
o.disableEditing();
|
|
1838
|
+
for (var d = 0; d < o.cornerPoints.length; d++) {
|
|
1839
|
+
var c = new BMap.Marker(o.cornerPoints[d], {
|
|
1840
|
+
icon: new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png", new BMap.Size(16, 16)),
|
|
1841
|
+
enableDragging: !0,
|
|
1842
|
+
raiseOnDrag: !0
|
|
1843
|
+
});
|
|
1844
|
+
c.addEventListener("dragend", function() {
|
|
1845
|
+
o.cornerPoints.length = 0;
|
|
1846
|
+
for (var f = 0; f < o.editMarkers.length; f++)
|
|
1847
|
+
o.cornerPoints.push(o.editMarkers[f].getPosition());
|
|
1848
|
+
var s = h(o.cornerPoints);
|
|
1849
|
+
o.setPath(s);
|
|
1850
|
+
}), c.index = d, o.editMarkers.push(c), o.map.addOverlay(c);
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
o.isEditing = !0;
|
|
1854
|
+
}, e.disableEditing = function() {
|
|
1855
|
+
this.isEditing = !1;
|
|
1856
|
+
for (var o = 0; o < this.editMarkers.length; o++)
|
|
1857
|
+
this.map.removeOverlay(this.editMarkers[o]), this.editMarkers[o] = null;
|
|
1858
|
+
this.editMarkers.length = 0;
|
|
1859
|
+
}, e.getPath = function() {
|
|
1860
|
+
return r;
|
|
1861
|
+
}, e;
|
|
1862
|
+
}
|
|
1863
|
+
function h(v) {
|
|
1864
|
+
for (var n = [], r = 0; r < v.length - 1; r++) {
|
|
1865
|
+
var e = _(v[r], v[r + 1]);
|
|
1866
|
+
e && e.length > 0 && (n = n.concat(e));
|
|
1867
|
+
}
|
|
1868
|
+
return n;
|
|
1869
|
+
}
|
|
1870
|
+
function _(v, n) {
|
|
1871
|
+
var r = [];
|
|
1872
|
+
if (!v || !n || !(v instanceof BMap.Point) || !(n instanceof BMap.Point))
|
|
1873
|
+
return null;
|
|
1874
|
+
var e = function(g) {
|
|
1875
|
+
return 1 - 2 * g + g * g;
|
|
1876
|
+
}, o = function(g) {
|
|
1877
|
+
return 2 * g - 2 * g * g;
|
|
1878
|
+
}, d = function(g) {
|
|
1879
|
+
return g * g;
|
|
1880
|
+
}, c = 30, f, s, p, y, M, u, C = 0, S = 0;
|
|
1881
|
+
if (typeof n == "undefined") {
|
|
1882
|
+
typeof r != "undefined" && (r = []);
|
|
1883
|
+
return;
|
|
1884
|
+
}
|
|
1885
|
+
var z = parseFloat(v.lat), B = parseFloat(n.lat), l = parseFloat(v.lng), m = parseFloat(n.lng);
|
|
1886
|
+
for (m > l && parseFloat(m - l) > 180 && l < 0 && (l = parseFloat(360 + l)), l > m && parseFloat(l - m) > 180 && m < 0 && (m = parseFloat(360 + m)), u = 0, B == z ? (f = 0, s = l - m) : m == l ? (f = Math.PI / 2, s = z - B) : (f = Math.atan((B - z) / (m - l)), s = (B - z) / Math.sin(f)), u == 0 && (u = f + Math.PI / 5), p = s / 2, M = p * Math.cos(u) + l, y = p * Math.sin(u) + z, C = 0; C < c + 1; C++)
|
|
1887
|
+
r.push(new BMap.Point(l * e(S) + M * o(S) + m * d(S), z * e(S) + y * o(S) + B * d(S))), S = S + 1 / c;
|
|
1888
|
+
return r;
|
|
1889
|
+
}
|
|
1890
|
+
return i;
|
|
1891
|
+
});
|
|
1892
|
+
})(me);
|
|
1893
|
+
const fe = "data:image/gif;base64,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", ge = { class: "mix-body" }, ve = { key: 0 }, ye = { class: "w-[80px] h-[80px]" }, _e = ["src"], be = { class: "bdmap-base-info" }, we = { class: "flex" }, Me = { class: "name" }, xe = { class: "value" }, Ce = { class: "flex" }, Be = { class: "name" }, ke = { class: "value" }, Se = { class: "flex" }, Oe = { class: "name" }, Pe = { class: "value" }, ze = {
|
|
1894
|
+
key: 1,
|
|
1895
|
+
class: "w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"
|
|
1896
|
+
}, Te = {
|
|
1897
|
+
DEFAULT_ICON: Ft,
|
|
1898
|
+
ACTIVE_ICON: Lt,
|
|
1899
|
+
NAME_CN: "百度地图",
|
|
1900
|
+
NAME_EN: "Baidu Map",
|
|
1901
|
+
ORDER: 2,
|
|
1902
|
+
PLATFORM: ["pc", "screen", "mobile"]
|
|
1903
|
+
}, Ee = {
|
|
1904
|
+
titleColor: "#111",
|
|
1905
|
+
bgColor: "#fff",
|
|
1906
|
+
radiusSize: 8,
|
|
1907
|
+
isHideTitle: !1,
|
|
1908
|
+
lng: 113.933782,
|
|
1909
|
+
lat: 22.582649,
|
|
1910
|
+
zoom: 10
|
|
1911
|
+
}, Ae = {
|
|
1912
|
+
baiduMapAk: ""
|
|
1913
|
+
// 百度地图AK,用户自行申请
|
|
1914
|
+
}, De = { DEFAULT: Te, OPTIONS: Ee, COMMON: Ae }, Ie = /* @__PURE__ */ Pt(lt(rt({}, De), {
|
|
1915
|
+
__name: "bmp",
|
|
1916
|
+
props: {
|
|
1917
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
1918
|
+
uid: { type: String, default: "" },
|
|
1919
|
+
mode: { type: String, default: "edit" },
|
|
1920
|
+
theme: { type: String, default: "light" }
|
|
1921
|
+
},
|
|
1922
|
+
setup(t) {
|
|
1923
|
+
const { proxy: a } = zt(), i = "bmp_" + Math.random().toString(16).substring(4, 12);
|
|
1924
|
+
let h = null, _ = null;
|
|
1925
|
+
const v = t;
|
|
1926
|
+
class n extends Nt {
|
|
1927
|
+
extractStyles() {
|
|
1928
|
+
return {
|
|
1929
|
+
bgColor: this.getOptionValue("bgColor", "#73bff9"),
|
|
1930
|
+
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
1931
|
+
radiusSize: this.getOptionValue("radiusSize", 4),
|
|
1932
|
+
zoom: this.getOptionValue("zoom", 10),
|
|
1933
|
+
lng: this.getOptionValue("lng", 113.933782),
|
|
1934
|
+
lat: this.getOptionValue("lat", 22.582649),
|
|
1935
|
+
isHideTitle: this.getOptionValue("isHideTitle", !1)
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
init() {
|
|
1939
|
+
var w;
|
|
1940
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), d.zoom = this.Style.value.zoom, d.center.lat = this.Style.value.lat, d.center.lng = this.Style.value.lng;
|
|
1941
|
+
const g = ((w = this.props.conf) == null ? void 0 : w.common) || {};
|
|
1942
|
+
if (d.ak = g.baiduMapAk || "", _ && h) {
|
|
1943
|
+
const b = new _.Point(this.Style.value.lng, this.Style.value.lat);
|
|
1944
|
+
h.centerAndZoom(b, this.Style.value.zoom);
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
const r = new n(v, "bmp");
|
|
1949
|
+
r.setupLifecycle();
|
|
1950
|
+
const e = r.getStyle(), o = dt(() => Zt(v.conf.options)), d = Tt({ zoom: 10, ak: "", center: { lat: 22.582649, lng: 113.933782 } }), c = G([]), f = G({}), s = G(0), p = G(0), y = G(!1), M = ({ BMap: m, map: g }) => {
|
|
1951
|
+
h = g, _ = m, v.mode === "preview" && u();
|
|
1952
|
+
}, u = () => ut(null, null, function* () {
|
|
1953
|
+
const { result: m } = yield pt.post("get_object_list"), g = /^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/, w = /^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;
|
|
1954
|
+
c.value = [];
|
|
1955
|
+
let b = !1;
|
|
1956
|
+
m.data.forEach((x) => {
|
|
1957
|
+
let k = "";
|
|
1958
|
+
if (x.gis || x.gis.split(", ").length > 1) {
|
|
1959
|
+
const A = x.gis.split(", ");
|
|
1960
|
+
if (g.test(A[1]) && w.test(A[0]) && Number(A[1]) && Number(A[0])) {
|
|
1961
|
+
const W = Gt(Number(A[1]), Number(A[0]));
|
|
1962
|
+
k = W[1] + "," + W[0];
|
|
1963
|
+
} else k = x.custom_gis;
|
|
1964
|
+
} else k = x.custom_gis;
|
|
1965
|
+
const P = k.split(",");
|
|
1966
|
+
P.length >= 2 && !b && (d.center.lng = Number(P[1]), d.center.lat = Number(P[0]), b = !0), k.length > 1 && c.value.push({
|
|
1967
|
+
center: { lng: P[1], lat: P[0] },
|
|
1968
|
+
image: x.image,
|
|
1969
|
+
address: x.address || x.province + x.city,
|
|
1970
|
+
name: x.name,
|
|
1971
|
+
uid: x.uid,
|
|
1972
|
+
desc: x.description
|
|
1973
|
+
});
|
|
1974
|
+
}), !b && c.value[0] && (d.center = c.value[0].center);
|
|
1975
|
+
const O = new _.Point(d.center.lng, d.center.lat);
|
|
1976
|
+
h.centerAndZoom(O, e.value.zoom);
|
|
1977
|
+
}), C = (m, g) => {
|
|
1978
|
+
s.value = m.pixel.y + 10 + "px", p.value = m.pixel.x + 10 + "px", f.value = g, g.address || B(g), y.value = !0;
|
|
1979
|
+
}, S = (m) => console.log(m), z = dt(() => f.value.image ? a.config.file_url + "/" + f.value.image : fe), B = (m) => {
|
|
1980
|
+
const g = `${m.center.lat},${m.center.lng}`, w = { ak: d.ak, location: g, coordtype: "bd09ll", output: "json", extensions_poi: 1 };
|
|
1981
|
+
pt.getLocation("/bdMapAddress", w).then((b) => {
|
|
1982
|
+
b.status === 0 && (f.value.address = b.result.formatted_address_poi || b.result.formatted_address);
|
|
1983
|
+
});
|
|
1984
|
+
}, l = (m) => {
|
|
1985
|
+
if (m) {
|
|
1986
|
+
let g = location.href;
|
|
1987
|
+
g.indexOf("?object_id=") > -1 && (g = g.split("?object_id=")[0]), location.href = g + "?object_id=" + m, location.reload();
|
|
1988
|
+
}
|
|
1989
|
+
};
|
|
1990
|
+
return (m, g) => {
|
|
1991
|
+
const w = St;
|
|
1992
|
+
return D(), I("div", {
|
|
1993
|
+
class: "mix-component",
|
|
1994
|
+
style: K({ background: L(e).bgColor, borderRadius: `${L(e).radiusSize}px` })
|
|
1995
|
+
}, [
|
|
1996
|
+
E("div", {
|
|
1997
|
+
class: "mix-title",
|
|
1998
|
+
style: K(o.value)
|
|
1999
|
+
}, N(t.conf.caption || t.conf.name), 5),
|
|
2000
|
+
E("div", ge, [
|
|
2001
|
+
d.ak ? (D(), I("div", {
|
|
2002
|
+
key: 0,
|
|
2003
|
+
class: "map-wrap",
|
|
2004
|
+
id: i
|
|
2005
|
+
}, [
|
|
2006
|
+
Q(L(ee), {
|
|
2007
|
+
class: "bm-view relative",
|
|
2008
|
+
center: d.center,
|
|
2009
|
+
"map-click": !1,
|
|
2010
|
+
zoom: d.zoom,
|
|
2011
|
+
ak: d.ak,
|
|
2012
|
+
v: "3.0",
|
|
2013
|
+
type: "API",
|
|
2014
|
+
onMovestart: g[2] || (g[2] = (b) => y.value = !1),
|
|
2015
|
+
onZoomstart: g[3] || (g[3] = (b) => y.value = !1),
|
|
2016
|
+
onClick: g[4] || (g[4] = (b) => S("close")),
|
|
2017
|
+
"scroll-wheel-zoom": !0,
|
|
2018
|
+
onReady: M
|
|
2019
|
+
}, {
|
|
2020
|
+
default: U(() => [
|
|
2021
|
+
c.value.length ? (D(), I("div", ve, [
|
|
2022
|
+
Q(L(pe), null, {
|
|
2023
|
+
default: U(() => [
|
|
2024
|
+
(D(!0), I(Et, null, At(c.value, (b) => (D(), Dt(L(re), {
|
|
2025
|
+
onClick: (O) => C(O, b),
|
|
2026
|
+
key: b.uid,
|
|
2027
|
+
position: b.center
|
|
2028
|
+
}, null, 8, ["onClick", "position"]))), 128))
|
|
2029
|
+
]),
|
|
2030
|
+
_: 1
|
|
2031
|
+
})
|
|
2032
|
+
])) : $("", !0),
|
|
2033
|
+
y.value ? (D(), I("div", {
|
|
2034
|
+
key: 1,
|
|
2035
|
+
class: "index-bdmap-equipment",
|
|
2036
|
+
style: K({ top: s.value, left: p.value }),
|
|
2037
|
+
onClick: g[1] || (g[1] = (b) => l(f.value))
|
|
2038
|
+
}, [
|
|
2039
|
+
E("div", ye, [
|
|
2040
|
+
E("img", {
|
|
2041
|
+
src: z.value,
|
|
2042
|
+
class: "w-[100%] h-[100%]"
|
|
2043
|
+
}, null, 8, _e)
|
|
2044
|
+
]),
|
|
2045
|
+
E("div", be, [
|
|
2046
|
+
E("div", we, [
|
|
2047
|
+
E("span", Me, N(m.$t("component.map.deviceNumber")) + ":", 1),
|
|
2048
|
+
E("span", xe, N(f.value.uid), 1)
|
|
2049
|
+
]),
|
|
2050
|
+
E("div", Ce, [
|
|
2051
|
+
E("span", Be, N(m.$t("component.map.deviceName")) + ":", 1),
|
|
2052
|
+
E("span", ke, N(f.value.name), 1)
|
|
2053
|
+
]),
|
|
2054
|
+
E("div", Se, [
|
|
2055
|
+
E("span", Oe, N(m.$t("component.map.address")) + ":", 1),
|
|
2056
|
+
E("span", Pe, N(f.value.address), 1)
|
|
2057
|
+
])
|
|
2058
|
+
]),
|
|
2059
|
+
Q(w, { class: "close-icon" }, {
|
|
2060
|
+
default: U(() => [
|
|
2061
|
+
Q(L(jt), {
|
|
2062
|
+
onClick: g[0] || (g[0] = It((b) => y.value = !1, ["stop"]))
|
|
2063
|
+
})
|
|
2064
|
+
]),
|
|
2065
|
+
_: 1
|
|
2066
|
+
})
|
|
2067
|
+
], 4)) : $("", !0)
|
|
2068
|
+
]),
|
|
2069
|
+
_: 1
|
|
2070
|
+
}, 8, ["center", "zoom", "ak"])
|
|
2071
|
+
])) : (D(), I("div", ze, N(m.$t("component.map.apiKeyRequired")), 1))
|
|
2072
|
+
]),
|
|
2073
|
+
q(m.$slots, "default", {}, void 0, !0)
|
|
2074
|
+
], 4);
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2077
|
+
})), Ve = /* @__PURE__ */ Rt(Ie, [["__scopeId", "data-v-d1ccdc00"]]);
|
|
2078
|
+
export {
|
|
2079
|
+
Ve as default
|
|
2080
|
+
};
|