Explorar el Código

登录页调整,地图调整,设备新增所属部门搜索

lipenghui hace 2 meses
padre
commit
1708dbc788
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/views/pms/map/Map.vue

+ 4 - 4
src/views/pms/map/Map.vue

@@ -84,7 +84,7 @@ const initDeviceMarkers = () => {
   map.value.clearOverlays()
 
   const zoomLevel = map.value.getZoom()
-  if (zoomLevel > 8) {
+  if (zoomLevel > 9) {
     // 高缩放级别下显示单个设备标记
     devices.value.forEach((device) => {
       const point = new (window as any).BMap.Point(device.lng, device.lat)
@@ -170,7 +170,7 @@ const createClusterLabel = (cluster: Cluster, point: any) => {
     fontWeight: 'bold',
     boxShadow: '0 2px 4px rgba(0, 0, 0, 0.2)',
     transition: 'all 0.3s ease',
-    border: '4px solid rgba(255, 255, 255, 0.5)', // 添加带有不透明度的边框
+    border: '7px solid rgba(255, 255, 255, 0.5)', // 添加带有不透明度的边框
     animation: 'breathing 2s infinite' // 添加呼吸动画
   })
 
@@ -188,7 +188,7 @@ const createClusterLabel = (cluster: Cluster, point: any) => {
 
   // 添加点击事件
   label.addEventListener('click', () => {
-    map.value?.setZoom(9)
+    map.value?.setZoom(10)
     map.value?.panTo(point)
   })
 
@@ -223,7 +223,7 @@ const clusterDevices = (devices: IotDeviceVO[], map: any): Cluster[] => {
 }
 
 const getGridSize = (zoom: number): number => {
-  if (zoom <= 5) return 2
+  if (zoom <= 5) return 1
   if (zoom <= 8) return 1
   if (zoom < 10) return 5
   return 0.1