hy-dispatch-ui-v3 0.2.67 → 0.2.68
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/tailwind.css +232 -20
- package/es/api/device.mjs +2 -3
- package/es/api/exportExcel.mjs +57 -0
- package/es/api/index.mjs +27 -16
- package/es/api/mapRail.mjs +31 -0
- package/es/api/organization.mjs +17 -9
- package/es/api/rule.mjs +30 -0
- package/es/api/sypct.mjs +2 -3
- package/es/api/task.mjs +2 -3
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +18 -19
- package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +511 -0
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +169 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +318 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +123 -0
- package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +358 -0
- package/es/bussiness/hyElectronicFence/index.mjs +13 -0
- package/es/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
- package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
- package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
- package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
- package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
- package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
- package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
- package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
- package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
- package/es/bussiness/hyRuleSetting/index.mjs +15 -0
- package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
- package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
- package/es/bussiness/index.mjs +2 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
- package/es/components/hyAudioPlayer/js/index.mjs +9 -14
- package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
- package/es/components/hyButton/button.vue.mjs +2 -2
- package/es/components/hyButton/style/button.scss +48 -74
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
- package/es/components/hyCheckboxGroup/index.mjs +7 -0
- package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
- package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
- package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
- package/es/components/hyCutter/cutter.vue.mjs +9 -23
- package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
- package/es/components/hyDialog/dialog.vue.mjs +5 -9
- package/es/components/hyDialog/style/dialog.scss +12 -13
- package/es/components/hyDrawer/drawer.vue.mjs +100 -0
- package/es/components/hyDrawer/index.mjs +7 -0
- package/es/components/hyDrawer/style/drawer.scss +0 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
- package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
- package/es/components/hyForm/cpns/formItem.vue.mjs +65 -35
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
- package/es/components/hyForm/form.vue.mjs +56 -24
- package/es/components/hyForm/js/index.mjs +4 -8
- package/es/components/hyForm/js/useAppForm.mjs +4 -9
- package/es/components/hyForm/style/form.scss +4 -13
- package/es/components/hyIcon/icon.vue.mjs +3 -3
- package/es/components/hyIconBox/style/iconBox.scss +2 -6
- package/es/components/hyInput/inputSearch.vue.mjs +8 -11
- package/es/components/hyInput/style/inputSearch.scss +3 -0
- package/es/components/hyLoading/index.mjs +3 -5
- package/es/components/hyMap/js/index.mjs +29 -4
- package/es/components/hyMap/map.vue.mjs +17 -3
- package/es/components/hyMenu/style/menu.scss +5 -15
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
- package/es/components/hyOrgCascader/js/index.mjs +1 -5
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +25 -11
- package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
- package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
- package/es/components/hySearch/cpns/searchItem.vue.mjs +33 -20
- package/es/components/hySearch/js/index.mjs +1 -4
- package/es/components/hySearch/js/useAppSearch.mjs +5 -10
- package/es/components/hySearch/search.vue.mjs +9 -16
- package/es/components/hySearch/style/search.scss +2 -0
- package/es/components/hyStatus/index.mjs +7 -0
- package/es/components/hyStatus/status.vue.mjs +110 -0
- package/es/components/hyStatus/style/status.scss +0 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
- package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +18 -28
- package/es/components/hyTable/js/index.mjs +56 -59
- package/es/components/hyTable/js/useAppTable.mjs +3 -4
- package/es/components/hyTable/style/table.scss +8 -0
- package/es/components/hyTable/table.vue.mjs +35 -41
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +4 -4
- package/es/components/hyTableForm/batchTableForm.vue.mjs +3 -7
- package/es/components/hyTableForm/js/index.mjs +2 -8
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -7
- package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
- package/es/components/hyTableForm/style/tableForm.scss +3 -2
- package/es/components/hyTableForm/tableForm.vue.mjs +90 -46
- package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
- package/es/components/hyTree/js/index.mjs +13 -40
- package/es/components/hyTree/style/index.css +1 -1
- package/es/components/hyTree/tree.vue.mjs +17 -16
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
- package/es/components/hyVideoPlayer/js/index.mjs +14 -23
- package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
- package/es/components/index.mjs +3 -0
- package/es/hooks/index.mjs +6 -2
- package/es/hooks/useAudioPlayerConfig.mjs +1 -3
- package/es/hooks/useBaseMainStore.mjs +29 -0
- package/es/hooks/useCurrentBus.mjs +20 -0
- package/es/hooks/useDialog.mjs +327 -0
- package/es/hooks/useExportFile.mjs +133 -0
- package/es/hooks/useGlobalConfig.mjs +10 -6
- package/es/hooks/useLocale.mjs +22 -12
- package/es/hooks/usePermissionMap.mjs +1 -3
- package/es/hooks/useResizeHandler.mjs +1 -4
- package/es/hooks/useResizeObserver.mjs +3 -1
- package/es/hooks/useSubscribe.mjs +2 -2
- package/es/hooks/useUserAvatarMap.mjs +1 -3
- package/es/hooks/useVideoPlayerConfig.mjs +1 -3
- package/es/index.mjs +11 -2
- package/es/locale/{en.mjs → en_US.mjs} +79 -4
- package/es/locale/index.mjs +2 -2
- package/es/locale/zh_CN.mjs +79 -2
- package/es/style/tailwind.scss +7 -3
- package/es/utils/adaptive.mjs +1 -3
- package/es/utils/form.mjs +7 -10
- package/es/utils/handler.mjs +4 -8
- package/es/utils/input.mjs +8 -9
- package/es/utils/map/hook/bigMap.mjs +14 -53
- package/es/utils/map/hook/gaode.mjs +5 -20
- package/es/utils/map/hook/leafletjs.mjs +23 -79
- package/es/utils/map/index.mjs +2 -8
- package/es/utils/map/js/webgis.mjs +12 -12
- package/es/version.mjs +1 -1
- package/lib/api/device.js +2 -3
- package/lib/api/exportExcel.js +62 -0
- package/lib/api/index.js +27 -16
- package/lib/api/mapRail.js +34 -0
- package/lib/api/organization.js +17 -8
- package/lib/api/rule.js +33 -0
- package/lib/api/sypct.js +2 -3
- package/lib/api/task.js +2 -3
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
- package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +173 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +322 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +127 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
- package/lib/bussiness/hyElectronicFence/index.js +21 -0
- package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
- package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
- package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
- package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
- package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
- package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
- package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
- package/lib/bussiness/hyRuleSetting/index.js +24 -0
- package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
- package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
- package/lib/bussiness/index.js +21 -10
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
- package/lib/components/hyAudioPlayer/js/index.js +9 -14
- package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
- package/lib/components/hyButton/button.vue.js +2 -2
- package/lib/components/hyButton/style/button.scss +48 -74
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
- package/lib/components/hyCheckboxGroup/index.js +12 -0
- package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
- package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
- package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
- package/lib/components/hyCutter/cutter.vue.js +8 -22
- package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
- package/lib/components/hyDialog/dialog.vue.js +5 -9
- package/lib/components/hyDialog/style/dialog.scss +12 -13
- package/lib/components/hyDrawer/drawer.vue.js +104 -0
- package/lib/components/hyDrawer/index.js +12 -0
- package/lib/components/hyDrawer/style/drawer.scss +0 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
- package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
- package/lib/components/hyForm/cpns/formItem.vue.js +66 -36
- package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
- package/lib/components/hyForm/form.vue.js +51 -19
- package/lib/components/hyForm/js/index.js +3 -7
- package/lib/components/hyForm/js/useAppForm.js +4 -9
- package/lib/components/hyForm/style/form.scss +4 -13
- package/lib/components/hyIcon/icon.vue.js +3 -3
- package/lib/components/hyIconBox/style/iconBox.scss +2 -6
- package/lib/components/hyInput/inputSearch.vue.js +7 -10
- package/lib/components/hyInput/style/inputSearch.scss +3 -0
- package/lib/components/hyLoading/index.js +2 -4
- package/lib/components/hyMap/js/index.js +29 -4
- package/lib/components/hyMap/map.vue.js +17 -3
- package/lib/components/hyMenu/style/menu.scss +5 -15
- package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
- package/lib/components/hyOrgCascader/js/index.js +1 -5
- package/lib/components/hyOrgCascader/orgCascader.vue.js +23 -9
- package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
- package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
- package/lib/components/hySearch/cpns/searchItem.vue.js +33 -20
- package/lib/components/hySearch/js/index.js +1 -4
- package/lib/components/hySearch/js/useAppSearch.js +5 -10
- package/lib/components/hySearch/search.vue.js +9 -16
- package/lib/components/hySearch/style/search.scss +2 -0
- package/lib/components/hyStatus/index.js +12 -0
- package/lib/components/hyStatus/status.vue.js +114 -0
- package/lib/components/hyStatus/style/status.scss +0 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
- package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
- package/lib/components/hyTable/cpns/virtualTable.vue.js +17 -27
- package/lib/components/hyTable/js/index.js +54 -57
- package/lib/components/hyTable/js/useAppTable.js +2 -3
- package/lib/components/hyTable/style/table.scss +8 -0
- package/lib/components/hyTable/table.vue.js +35 -41
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -4
- package/lib/components/hyTableForm/batchTableForm.vue.js +3 -7
- package/lib/components/hyTableForm/js/index.js +2 -8
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -7
- package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
- package/lib/components/hyTableForm/style/tableForm.scss +3 -2
- package/lib/components/hyTableForm/tableForm.vue.js +89 -45
- package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
- package/lib/components/hyTree/js/index.js +13 -40
- package/lib/components/hyTree/style/index.css +1 -1
- package/lib/components/hyTree/tree.vue.js +17 -16
- package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
- package/lib/components/hyVideoPlayer/js/index.js +14 -23
- package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
- package/lib/components/index.js +46 -40
- package/lib/hooks/index.js +17 -0
- package/lib/hooks/useAudioPlayerConfig.js +1 -3
- package/lib/hooks/useBaseMainStore.js +32 -0
- package/lib/hooks/useCurrentBus.js +23 -0
- package/lib/hooks/useDialog.js +331 -0
- package/lib/hooks/useExportFile.js +135 -0
- package/lib/hooks/useGlobalConfig.js +10 -6
- package/lib/hooks/useLocale.js +25 -11
- package/lib/hooks/usePermissionMap.js +1 -3
- package/lib/hooks/useResizeHandler.js +1 -4
- package/lib/hooks/useResizeObserver.js +3 -1
- package/lib/hooks/useSubscribe.js +2 -1
- package/lib/hooks/useUserAvatarMap.js +1 -3
- package/lib/hooks/useVideoPlayerConfig.js +1 -3
- package/lib/index.js +107 -73
- package/lib/locale/{en.js → en_US.js} +79 -4
- package/lib/locale/index.js +3 -3
- package/lib/locale/zh_CN.js +79 -2
- package/lib/style/tailwind.scss +7 -3
- package/lib/utils/adaptive.js +1 -3
- package/lib/utils/form.js +6 -9
- package/lib/utils/handler.js +3 -7
- package/lib/utils/input.js +7 -8
- package/lib/utils/map/hook/bigMap.js +14 -53
- package/lib/utils/map/hook/gaode.js +5 -20
- package/lib/utils/map/hook/leafletjs.js +23 -79
- package/lib/utils/map/index.js +2 -8
- package/lib/utils/map/js/webgis.js +12 -12
- package/lib/version.js +1 -1
- package/package.json +3 -2
|
@@ -12,9 +12,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
12
12
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
13
13
|
const CIRCLE_SEGMENTS = 36;
|
|
14
14
|
function remToPx(rem) {
|
|
15
|
-
const rootFontSize = parseFloat(
|
|
16
|
-
getComputedStyle(document.documentElement).fontSize
|
|
17
|
-
);
|
|
15
|
+
const rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
18
16
|
return rem * rootFontSize;
|
|
19
17
|
}
|
|
20
18
|
function rangingStartIconOption(options, dicId) {
|
|
@@ -312,11 +310,7 @@ class bigMap extends events.EventEmitter {
|
|
|
312
310
|
if (!newEvent.layer.getLatLngs) {
|
|
313
311
|
newEvent.layer.getLatLngs = () => {
|
|
314
312
|
const circle = newEvent.layer;
|
|
315
|
-
const points = circleToPolygonPoints(
|
|
316
|
-
circle.getLatLng(),
|
|
317
|
-
circle.getRadius() / 1e3,
|
|
318
|
-
true
|
|
319
|
-
);
|
|
313
|
+
const points = circleToPolygonPoints(circle.getLatLng(), circle.getRadius() / 1e3, true);
|
|
320
314
|
return [latLngListCheckExport(points)];
|
|
321
315
|
};
|
|
322
316
|
} else {
|
|
@@ -449,9 +443,7 @@ class bigMap extends events.EventEmitter {
|
|
|
449
443
|
map.addLayer(displayCluster);
|
|
450
444
|
const toNativeMarkers = (list = []) => {
|
|
451
445
|
const markers = Array.isArray(list) ? list : [list];
|
|
452
|
-
return markers.map(
|
|
453
|
-
(marker) => marker?.getInitMarker ? marker.getInitMarker() : marker
|
|
454
|
-
).filter(Boolean);
|
|
446
|
+
return markers.map((marker) => marker?.getInitMarker ? marker.getInitMarker() : marker).filter(Boolean);
|
|
455
447
|
};
|
|
456
448
|
const handlers = {
|
|
457
449
|
remove: function(target) {
|
|
@@ -493,10 +485,7 @@ class bigMap extends events.EventEmitter {
|
|
|
493
485
|
},
|
|
494
486
|
// 圆形转多边形坐标
|
|
495
487
|
getLatLngs: function(target) {
|
|
496
|
-
const points = circleToPolygonPoints(
|
|
497
|
-
target.getLatLng(),
|
|
498
|
-
target.getRadius() / 1e3
|
|
499
|
-
);
|
|
488
|
+
const points = circleToPolygonPoints(target.getLatLng(), target.getRadius() / 1e3);
|
|
500
489
|
return [latLngListCheckExport(points)];
|
|
501
490
|
}
|
|
502
491
|
};
|
|
@@ -667,9 +656,7 @@ class bigMap extends events.EventEmitter {
|
|
|
667
656
|
layer = e.layer;
|
|
668
657
|
if (!layer._latlngs) {
|
|
669
658
|
const center = latAndLngCheckExport(layer.getLatLng());
|
|
670
|
-
layer._latlngs = [
|
|
671
|
-
circleToPolygonPoints(center, layer.getRadius() / 1e3, true)
|
|
672
|
-
];
|
|
659
|
+
layer._latlngs = [circleToPolygonPoints(center, layer.getRadius() / 1e3, true)];
|
|
673
660
|
} else {
|
|
674
661
|
layer._latlngs[0] = latLngListCheckExport(layer._latlngs[0]);
|
|
675
662
|
}
|
|
@@ -808,12 +795,8 @@ class bigMap extends events.EventEmitter {
|
|
|
808
795
|
function calcTotalDistance(index, preIndex) {
|
|
809
796
|
const current = rangingMarker[index].options.extData.latlng;
|
|
810
797
|
const previous = rangingMarker[preIndex].options.extData.latlng;
|
|
811
|
-
const distance = parseFloat(
|
|
812
|
-
|
|
813
|
-
);
|
|
814
|
-
const total = parseFloat(
|
|
815
|
-
rangingMarker[preIndex].options.extData.distance || 0
|
|
816
|
-
);
|
|
798
|
+
const distance = parseFloat((map.distance(current, previous) / 1e3).toFixed(2));
|
|
799
|
+
const total = parseFloat(rangingMarker[preIndex].options.extData.distance || 0);
|
|
817
800
|
return (distance + total).toFixed(2);
|
|
818
801
|
}
|
|
819
802
|
function removeLineBetween(groupIndex, aIndex, bIndex) {
|
|
@@ -829,9 +812,7 @@ class bigMap extends events.EventEmitter {
|
|
|
829
812
|
function setStartIcon(index) {
|
|
830
813
|
const markerItem = rangingMarker[index];
|
|
831
814
|
markerItem.setIcon({
|
|
832
|
-
divIcon: _this.DivIcon(
|
|
833
|
-
rangingStartIconOption(options, markerItem.options.extData.dicId)
|
|
834
|
-
)
|
|
815
|
+
divIcon: _this.DivIcon(rangingStartIconOption(options, markerItem.options.extData.dicId))
|
|
835
816
|
});
|
|
836
817
|
markerItem.options.extData.distance = 0;
|
|
837
818
|
}
|
|
@@ -839,14 +820,7 @@ class bigMap extends events.EventEmitter {
|
|
|
839
820
|
const markerItem = rangingMarker[index];
|
|
840
821
|
const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
841
822
|
markerItem.setIcon({
|
|
842
|
-
divIcon: _this.DivIcon(
|
|
843
|
-
rangingPointIconOption(
|
|
844
|
-
options,
|
|
845
|
-
distance,
|
|
846
|
-
markerItem.options.extData.dicId,
|
|
847
|
-
isLast
|
|
848
|
-
)
|
|
849
|
-
)
|
|
823
|
+
divIcon: _this.DivIcon(rangingPointIconOption(options, distance, markerItem.options.extData.dicId, isLast))
|
|
850
824
|
});
|
|
851
825
|
markerItem.options.extData.distance = distance;
|
|
852
826
|
}
|
|
@@ -874,10 +848,7 @@ class bigMap extends events.EventEmitter {
|
|
|
874
848
|
rangingPointsIng.push({ lat, lng });
|
|
875
849
|
} else {
|
|
876
850
|
const latlngs = [
|
|
877
|
-
[
|
|
878
|
-
rangingPointsIng[rangingPointsIng.length - 1].lat,
|
|
879
|
-
rangingPointsIng[rangingPointsIng.length - 1].lng
|
|
880
|
-
],
|
|
851
|
+
[rangingPointsIng[rangingPointsIng.length - 1].lat, rangingPointsIng[rangingPointsIng.length - 1].lng],
|
|
881
852
|
[lat, lng]
|
|
882
853
|
];
|
|
883
854
|
const polyline = _this.Polyline(latlngs, {
|
|
@@ -895,13 +866,9 @@ class bigMap extends events.EventEmitter {
|
|
|
895
866
|
{ lat: latlngs[1][0], lng: latlngs[1][1] }
|
|
896
867
|
);
|
|
897
868
|
distance = parseFloat((distance / 1e3).toFixed(2));
|
|
898
|
-
const total = parseFloat(
|
|
899
|
-
rangingMarker[rangingMarker.length - 1].options.extData.distance || 0
|
|
900
|
-
);
|
|
869
|
+
const total = parseFloat(rangingMarker[rangingMarker.length - 1].options.extData.distance || 0);
|
|
901
870
|
distance = (distance + total).toFixed(2);
|
|
902
|
-
const customIcon = _this.DivIcon(
|
|
903
|
-
rangingPointIconOption(options, distance, dicId)
|
|
904
|
-
);
|
|
871
|
+
const customIcon = _this.DivIcon(rangingPointIconOption(options, distance, dicId));
|
|
905
872
|
const markerItem = _this.Marker({
|
|
906
873
|
position: { lat, lng },
|
|
907
874
|
icon: customIcon,
|
|
@@ -967,10 +934,7 @@ class bigMap extends events.EventEmitter {
|
|
|
967
934
|
if (changeIndex - 1 === index) {
|
|
968
935
|
setStartIcon(changeIndex);
|
|
969
936
|
} else {
|
|
970
|
-
setPointIcon(
|
|
971
|
-
changeIndex,
|
|
972
|
-
calcTotalDistance(changeIndex, changeIndex - 1)
|
|
973
|
-
);
|
|
937
|
+
setPointIcon(changeIndex, calcTotalDistance(changeIndex, changeIndex - 1));
|
|
974
938
|
}
|
|
975
939
|
changeIndex++;
|
|
976
940
|
}
|
|
@@ -1003,10 +967,7 @@ class bigMap extends events.EventEmitter {
|
|
|
1003
967
|
let changeIndex = index + 1;
|
|
1004
968
|
while (rangingMarker[changeIndex]?.options?.extData?.distance) {
|
|
1005
969
|
const disIndex = changeIndex - 1 === index ? changeIndex - 2 : changeIndex - 1;
|
|
1006
|
-
setPointIcon(
|
|
1007
|
-
changeIndex,
|
|
1008
|
-
calcTotalDistance(changeIndex, disIndex)
|
|
1009
|
-
);
|
|
970
|
+
setPointIcon(changeIndex, calcTotalDistance(changeIndex, disIndex));
|
|
1010
971
|
changeIndex++;
|
|
1011
972
|
}
|
|
1012
973
|
setTimeout(() => {
|
|
@@ -126,9 +126,7 @@ class Google extends events.EventEmitter {
|
|
|
126
126
|
"AMap.MouseTool"
|
|
127
127
|
],
|
|
128
128
|
() => {
|
|
129
|
-
this.layerSateGroup = new window.AMap.LayerGroup([
|
|
130
|
-
new window.AMap.TileLayer.Satellite()
|
|
131
|
-
]);
|
|
129
|
+
this.layerSateGroup = new window.AMap.LayerGroup([new window.AMap.TileLayer.Satellite()]);
|
|
132
130
|
this.layerSateGroup.setMap(newMap);
|
|
133
131
|
this.layerSateGroup.hide();
|
|
134
132
|
setTimeout(() => {
|
|
@@ -145,10 +143,7 @@ class Google extends events.EventEmitter {
|
|
|
145
143
|
const handlers = {
|
|
146
144
|
// return 单位:m
|
|
147
145
|
distance: function(target, latAndlng1, latAndlng2) {
|
|
148
|
-
return AMap.GeometryUtil.distance(
|
|
149
|
-
[latAndlng1.lng, latAndlng1.lat],
|
|
150
|
-
[latAndlng2.lng, latAndlng2.lat]
|
|
151
|
-
);
|
|
146
|
+
return AMap.GeometryUtil.distance([latAndlng1.lng, latAndlng1.lat], [latAndlng2.lng, latAndlng2.lat]);
|
|
152
147
|
},
|
|
153
148
|
// 删除地图
|
|
154
149
|
removeMap: function(target) {
|
|
@@ -244,10 +239,7 @@ class Google extends events.EventEmitter {
|
|
|
244
239
|
let offset = null;
|
|
245
240
|
const { html, iconSize, iconAnchor } = markerOptions.icon.option;
|
|
246
241
|
if (markerOptions.offset) {
|
|
247
|
-
offset = new window.AMap.Pixel(
|
|
248
|
-
markerOptions.offset[0],
|
|
249
|
-
markerOptions.offset[1]
|
|
250
|
-
);
|
|
242
|
+
offset = new window.AMap.Pixel(markerOptions.offset[0], markerOptions.offset[1]);
|
|
251
243
|
} else {
|
|
252
244
|
const offsetX = iconAnchor[0] - iconSize[0] / 2;
|
|
253
245
|
const offsetY = -iconAnchor[1];
|
|
@@ -282,10 +274,7 @@ class Google extends events.EventEmitter {
|
|
|
282
274
|
target.setContent(html2);
|
|
283
275
|
let setOffset = null;
|
|
284
276
|
if (iconParams.offset) {
|
|
285
|
-
setOffset = new window.AMap.Pixel(
|
|
286
|
-
iconParams.offset[0],
|
|
287
|
-
iconParams.offset[1]
|
|
288
|
-
);
|
|
277
|
+
setOffset = new window.AMap.Pixel(iconParams.offset[0], iconParams.offset[1]);
|
|
289
278
|
} else {
|
|
290
279
|
const offsetX = iconAnchor2[0] - iconSize2[0] / 2;
|
|
291
280
|
const offsetY = -iconAnchor2[1];
|
|
@@ -319,11 +308,7 @@ class Google extends events.EventEmitter {
|
|
|
319
308
|
gridSize: option.maxClusterRadius
|
|
320
309
|
// 聚合计算时网格的像素大小,默认60
|
|
321
310
|
};
|
|
322
|
-
const displayCluster = new window.AMap.MarkerClusterer(
|
|
323
|
-
map,
|
|
324
|
-
markerList,
|
|
325
|
-
option
|
|
326
|
-
);
|
|
311
|
+
const displayCluster = new window.AMap.MarkerClusterer(map, markerList, option);
|
|
327
312
|
const handlers = {
|
|
328
313
|
// 清除聚合点
|
|
329
314
|
remove: function(target) {
|
|
@@ -72,9 +72,7 @@ const DEFAULT_MAP_OPTIONS = {
|
|
|
72
72
|
// 禁止鼠标滚动缩放
|
|
73
73
|
};
|
|
74
74
|
const remToPx = (rem) => {
|
|
75
|
-
const rootFontSize = parseFloat(
|
|
76
|
-
getComputedStyle(document.documentElement).fontSize
|
|
77
|
-
);
|
|
75
|
+
const rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
78
76
|
return rem * rootFontSize;
|
|
79
77
|
};
|
|
80
78
|
const createUniqueId = () => {
|
|
@@ -188,11 +186,7 @@ function wrapDrawLayer(layer) {
|
|
|
188
186
|
const bounds = layer.getBounds();
|
|
189
187
|
if (!layer.getLatLngs) {
|
|
190
188
|
layer.getLatLngs = () => {
|
|
191
|
-
const points = circleToPolygonPoints(
|
|
192
|
-
layer.getLatLng(),
|
|
193
|
-
layer.getRadius() / 1e3,
|
|
194
|
-
true
|
|
195
|
-
);
|
|
189
|
+
const points = circleToPolygonPoints(layer.getLatLng(), layer.getRadius() / 1e3, true);
|
|
196
190
|
return [latLngListCheckExport(points)];
|
|
197
191
|
};
|
|
198
192
|
} else {
|
|
@@ -253,11 +247,11 @@ function getCrs(crs) {
|
|
|
253
247
|
70.53121499999999,
|
|
254
248
|
35.26560700000001
|
|
255
249
|
].map((item) => 0.0254 * item / (96 * (Math.PI * 2 * 6378137 / 360)));
|
|
256
|
-
L.CRS.CRS4490 = new L.Proj.CRS(
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
);
|
|
250
|
+
L.CRS.CRS4490 = new L.Proj.CRS("EPSG:4490", "+proj=longlat +ellps=GRS80 +no_defs +type=crs", {
|
|
251
|
+
matrixIds,
|
|
252
|
+
resolutions,
|
|
253
|
+
origin: [-180, 90]
|
|
254
|
+
});
|
|
261
255
|
}
|
|
262
256
|
return crs ? L.CRS[`${crs}`] : DEFAULT_CRS;
|
|
263
257
|
}
|
|
@@ -470,12 +464,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
470
464
|
}
|
|
471
465
|
// 超图 WMTS 图层(不适用所有的WMTS图层,目前仅支持超图WMTS,因不同的WMTS服务规范不一样,主要体现在路由访问参数)
|
|
472
466
|
createWMTSLayer(map, option = {}) {
|
|
473
|
-
const {
|
|
474
|
-
url,
|
|
475
|
-
layer,
|
|
476
|
-
tilematrixSet,
|
|
477
|
-
format = "image/png"
|
|
478
|
-
} = typeof option === "string" ? { url: option } : option;
|
|
467
|
+
const { url, layer, tilematrixSet, format = "image/png" } = typeof option === "string" ? { url: option } : option;
|
|
479
468
|
const crs = getCrs(this.initParams.crs);
|
|
480
469
|
if (!L.WMTSLayer) {
|
|
481
470
|
L.WMTSLayer = L.TileLayer.extend({
|
|
@@ -551,8 +540,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
551
540
|
createLayers(map, url, option = {}) {
|
|
552
541
|
const { zoomOffset, mapServerType } = this.initParams;
|
|
553
542
|
if (mapServerType === "WMTS") return this.createWMTSLayer(map, url);
|
|
554
|
-
if (mapServerType === "Dynamic")
|
|
555
|
-
return this.createDynamicLayer(map, url.url || url);
|
|
543
|
+
if (mapServerType === "Dynamic") return this.createDynamicLayer(map, url.url || url);
|
|
556
544
|
const newLeayer = L.tileLayer(url, {
|
|
557
545
|
...option,
|
|
558
546
|
zoomOffset: zoomOffset || 0
|
|
@@ -564,8 +552,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
564
552
|
createCustomLayers(map, url, option = {}) {
|
|
565
553
|
const { zoomOffset, mapServerType } = this.initParams;
|
|
566
554
|
if (mapServerType === "WMTS") return this.createWMTSLayer(map, url);
|
|
567
|
-
if (mapServerType === "Dynamic")
|
|
568
|
-
return this.createDynamicLayer(map, url.url || url);
|
|
555
|
+
if (mapServerType === "Dynamic") return this.createDynamicLayer(map, url.url || url);
|
|
569
556
|
const filter = option.filter || DEFAULT_TILE_FILTER;
|
|
570
557
|
const CustomTileLayer = L.TileLayer.extend({
|
|
571
558
|
options: {
|
|
@@ -669,12 +656,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
669
656
|
},
|
|
670
657
|
on: function(target, types, fn, context) {
|
|
671
658
|
if (types === "click") {
|
|
672
|
-
const customClickHandler = createClickHandler(
|
|
673
|
-
fn,
|
|
674
|
-
context,
|
|
675
|
-
target,
|
|
676
|
-
true
|
|
677
|
-
);
|
|
659
|
+
const customClickHandler = createClickHandler(fn, context, target, true);
|
|
678
660
|
wrappedHandlers.remember(types, fn, customClickHandler);
|
|
679
661
|
return target.on(types, customClickHandler, context);
|
|
680
662
|
}
|
|
@@ -762,10 +744,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
762
744
|
},
|
|
763
745
|
// 圆形转多边形坐标
|
|
764
746
|
getLatLngs: function(target) {
|
|
765
|
-
const points = circleToPolygonPoints(
|
|
766
|
-
target.getLatLng(),
|
|
767
|
-
target.getRadius() / 1e3
|
|
768
|
-
);
|
|
747
|
+
const points = circleToPolygonPoints(target.getLatLng(), target.getRadius() / 1e3);
|
|
769
748
|
return [latLngListCheckExport(points)];
|
|
770
749
|
}
|
|
771
750
|
};
|
|
@@ -847,12 +826,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
847
826
|
if (latLngList && latLngList.length !== 0) {
|
|
848
827
|
latLngList = latLngListCheck(latLngList);
|
|
849
828
|
}
|
|
850
|
-
const polyline = L.motion.polyline(
|
|
851
|
-
latLngList,
|
|
852
|
-
option,
|
|
853
|
-
motionOption,
|
|
854
|
-
markerOption
|
|
855
|
-
);
|
|
829
|
+
const polyline = L.motion.polyline(latLngList, option, motionOption, markerOption);
|
|
856
830
|
return mapProxy.createMapProxy(polyline, {
|
|
857
831
|
addTo: function(target, map) {
|
|
858
832
|
return target.addTo(generalMapMethods.getMap(map));
|
|
@@ -1073,20 +1047,14 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1073
1047
|
function calcTotalDistance(index, preIndex) {
|
|
1074
1048
|
const current = rangingMarker[index].options.extData.latlng;
|
|
1075
1049
|
const previous = rangingMarker[preIndex].options.extData.latlng;
|
|
1076
|
-
const distance = parseFloat(
|
|
1077
|
-
|
|
1078
|
-
);
|
|
1079
|
-
const total = parseFloat(
|
|
1080
|
-
rangingMarker[preIndex].options.extData.distance || 0
|
|
1081
|
-
);
|
|
1050
|
+
const distance = parseFloat((map.distance(current, previous) / 1e3).toFixed(2));
|
|
1051
|
+
const total = parseFloat(rangingMarker[preIndex].options.extData.distance || 0);
|
|
1082
1052
|
return (distance + total).toFixed(2);
|
|
1083
1053
|
}
|
|
1084
1054
|
function setStartIcon(index) {
|
|
1085
1055
|
const markerItem = rangingMarker[index];
|
|
1086
1056
|
markerItem.setIcon({
|
|
1087
|
-
divIcon: _this.DivIcon(
|
|
1088
|
-
rangingStartIconOption(options, markerItem.options.extData.dicId)
|
|
1089
|
-
)
|
|
1057
|
+
divIcon: _this.DivIcon(rangingStartIconOption(options, markerItem.options.extData.dicId))
|
|
1090
1058
|
});
|
|
1091
1059
|
markerItem.options.extData.distance = 0;
|
|
1092
1060
|
}
|
|
@@ -1104,14 +1072,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1104
1072
|
const markerItem = rangingMarker[index];
|
|
1105
1073
|
const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
1106
1074
|
markerItem.setIcon({
|
|
1107
|
-
divIcon: _this.DivIcon(
|
|
1108
|
-
rangingPointIconOption(
|
|
1109
|
-
options,
|
|
1110
|
-
distance,
|
|
1111
|
-
markerItem.options.extData.dicId,
|
|
1112
|
-
isLast
|
|
1113
|
-
)
|
|
1114
|
-
)
|
|
1075
|
+
divIcon: _this.DivIcon(rangingPointIconOption(options, distance, markerItem.options.extData.dicId, isLast))
|
|
1115
1076
|
});
|
|
1116
1077
|
markerItem.options.extData.distance = distance;
|
|
1117
1078
|
}
|
|
@@ -1139,10 +1100,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1139
1100
|
rangingPointsIng.push({ lat, lng });
|
|
1140
1101
|
} else {
|
|
1141
1102
|
const latlngs = [
|
|
1142
|
-
[
|
|
1143
|
-
rangingPointsIng[rangingPointsIng.length - 1].lat,
|
|
1144
|
-
rangingPointsIng[rangingPointsIng.length - 1].lng
|
|
1145
|
-
],
|
|
1103
|
+
[rangingPointsIng[rangingPointsIng.length - 1].lat, rangingPointsIng[rangingPointsIng.length - 1].lng],
|
|
1146
1104
|
[lat, lng]
|
|
1147
1105
|
];
|
|
1148
1106
|
const polyline = _this.Polyline(latlngs, {
|
|
@@ -1160,13 +1118,9 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1160
1118
|
{ lat: latlngs[1][0], lng: latlngs[1][1] }
|
|
1161
1119
|
);
|
|
1162
1120
|
distance = parseFloat((distance / 1e3).toFixed(2));
|
|
1163
|
-
const total = parseFloat(
|
|
1164
|
-
rangingMarker[rangingMarker.length - 1].options.extData.distance || 0
|
|
1165
|
-
);
|
|
1121
|
+
const total = parseFloat(rangingMarker[rangingMarker.length - 1].options.extData.distance || 0);
|
|
1166
1122
|
distance = (distance + total).toFixed(2);
|
|
1167
|
-
const customIcon = _this.DivIcon(
|
|
1168
|
-
rangingPointIconOption(options, distance, dicId)
|
|
1169
|
-
);
|
|
1123
|
+
const customIcon = _this.DivIcon(rangingPointIconOption(options, distance, dicId));
|
|
1170
1124
|
const markerItem = _this.Marker({
|
|
1171
1125
|
icon: customIcon,
|
|
1172
1126
|
position: { lat, lng },
|
|
@@ -1232,10 +1186,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1232
1186
|
if (changeIndex - 1 === index) {
|
|
1233
1187
|
setStartIcon(changeIndex);
|
|
1234
1188
|
} else {
|
|
1235
|
-
setPointIcon(
|
|
1236
|
-
changeIndex,
|
|
1237
|
-
calcTotalDistance(changeIndex, changeIndex - 1)
|
|
1238
|
-
);
|
|
1189
|
+
setPointIcon(changeIndex, calcTotalDistance(changeIndex, changeIndex - 1));
|
|
1239
1190
|
}
|
|
1240
1191
|
changeIndex++;
|
|
1241
1192
|
}
|
|
@@ -1268,10 +1219,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1268
1219
|
let changeIndex = index + 1;
|
|
1269
1220
|
while (rangingMarker[changeIndex]?.options?.extData?.distance) {
|
|
1270
1221
|
const disIndex = changeIndex - 1 === index ? changeIndex - 2 : changeIndex - 1;
|
|
1271
|
-
setPointIcon(
|
|
1272
|
-
changeIndex,
|
|
1273
|
-
calcTotalDistance(changeIndex, disIndex)
|
|
1274
|
-
);
|
|
1222
|
+
setPointIcon(changeIndex, calcTotalDistance(changeIndex, disIndex));
|
|
1275
1223
|
changeIndex++;
|
|
1276
1224
|
}
|
|
1277
1225
|
setTimeout(() => {
|
|
@@ -1282,11 +1230,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1282
1230
|
const beforeDistance = rangingMarker[index - 1]?.options?.extData?.distance;
|
|
1283
1231
|
if (beforeDistance) {
|
|
1284
1232
|
removeLineBetween(rangEndIndex, index - 1, index);
|
|
1285
|
-
setPointIcon(
|
|
1286
|
-
index - 1,
|
|
1287
|
-
rangingMarker[index - 1].options.extData.distance,
|
|
1288
|
-
true
|
|
1289
|
-
);
|
|
1233
|
+
setPointIcon(index - 1, rangingMarker[index - 1].options.extData.distance, true);
|
|
1290
1234
|
setTimeout(() => {
|
|
1291
1235
|
rangingMarker[index].remove();
|
|
1292
1236
|
rangingMarker.splice(index, 1);
|
package/lib/utils/map/index.js
CHANGED
|
@@ -21,15 +21,9 @@ const AMAP_PLUGINS = [
|
|
|
21
21
|
];
|
|
22
22
|
const staticAssets = {
|
|
23
23
|
"bigemap.js": new URL("../../static/map/bigemap.js", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/map/index.js', document.baseURI).href))).href,
|
|
24
|
-
"markercluster.js": new URL(
|
|
25
|
-
"../../static/map/markercluster.js",
|
|
26
|
-
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/map/index.js', document.baseURI).href))
|
|
27
|
-
).href,
|
|
24
|
+
"markercluster.js": new URL("../../static/map/markercluster.js", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/map/index.js', document.baseURI).href))).href,
|
|
28
25
|
"bmDraw.js": new URL("../../static/map/bmDraw.js", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/map/index.js', document.baseURI).href))).href,
|
|
29
|
-
"bm.geometryutil.js": new URL(
|
|
30
|
-
"../../static/map/bm.geometryutil.js",
|
|
31
|
-
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/map/index.js', document.baseURI).href))
|
|
32
|
-
).href,
|
|
26
|
+
"bm.geometryutil.js": new URL("../../static/map/bm.geometryutil.js", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/map/index.js', document.baseURI).href))).href,
|
|
33
27
|
"moveMarker.js": new URL("../../static/map/moveMarker.js", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/map/index.js', document.baseURI).href))).href
|
|
34
28
|
};
|
|
35
29
|
const normalizeStaticBaseUrl = (baseUrl) => {
|
|
@@ -34,9 +34,9 @@ function ToLon(x, y) {
|
|
|
34
34
|
return ret;
|
|
35
35
|
}
|
|
36
36
|
const Coordinate = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
WGS84: 0,
|
|
38
|
+
GCJ02: 1,
|
|
39
|
+
BD09: 2
|
|
40
40
|
};
|
|
41
41
|
const reverseCoordinate = {
|
|
42
42
|
0: "WGS84",
|
|
@@ -44,17 +44,17 @@ const reverseCoordinate = {
|
|
|
44
44
|
2: "BD09"
|
|
45
45
|
};
|
|
46
46
|
const conversionCoordinateMap = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
WGS84: {
|
|
48
|
+
GCJ02: WGS84ToGCJ02,
|
|
49
|
+
BD09: WGS84ToBD09
|
|
50
50
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
GCJ02: {
|
|
52
|
+
WGS84: GCJ02ToWGS84,
|
|
53
|
+
BD09: GCJ02ToBD09
|
|
54
54
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
BD09: {
|
|
56
|
+
GCJ02: BD09ToGCJ02,
|
|
57
|
+
WGS84: BD09ToWGS84
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
function getMapConfig() {
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hy-dispatch-ui-v3",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.68",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"events": "^3.3.0",
|
|
31
31
|
"express": "^5.2.1",
|
|
32
32
|
"hy-common": "^0.0.39",
|
|
33
|
-
"hy-virtual-tree": "
|
|
33
|
+
"hy-virtual-tree": "2.5.0",
|
|
34
34
|
"leaflet": "^1.5.1",
|
|
35
35
|
"leaflet-pip": "^1.1.0",
|
|
36
36
|
"leaflet-polylinedecorator": "^1.6.0",
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
"vue": "^3.5.25",
|
|
97
97
|
"vue-draggable-plus": "^0.6.1",
|
|
98
98
|
"vue-eslint-parser": "^9.4.3",
|
|
99
|
+
"vue-i18n": "^11.4.12",
|
|
99
100
|
"vue-router": "^5.2.0"
|
|
100
101
|
},
|
|
101
102
|
"browserslist": [
|