wangzhe пре 2 година
родитељ
комит
e555130a1f
2 измењених фајлова са 9 додато и 7 уклоњено
  1. 8 6
      src/components/Jsmsdialog.vue
  2. 1 1
      src/components/supermap.vue

+ 8 - 6
src/components/Jsmsdialog.vue

@@ -255,7 +255,7 @@ export default {
 					click: 'abc',
 					parameter: pointList[i],
 					keepBindPopup: false,
-					isAggregation: true
+					isAggregation: false
 				}
 				markersMap.icon = 'sj-icon-map-' + pointList[i].type.replaceAll("_", "-");
 				markersMap.lng = pointList[i].longitude;
@@ -307,12 +307,14 @@ export default {
 				//     this.$emit(clickName, markersList[i].parameter)
 				// })
 			}
-			for (let i = 0; i < markersList.length; i++) {
-				setTimeout(() => {
+
+			setTimeout(() => {
+				this.$refs.supermapDetail.clearM(false);
+				// for (let i = 0; i < markersList.length; i++) {
 				// alert(markersList[i].type)
-					this.$refs.supermapDetail.setMarkersByType([markersList[i]], markersList[i].type);
-				}, 3000)
-			}
+					this.$refs.supermapDetail.setMarkers(markersList);
+				// }
+			}, 2000)
 			// setTimeout(() => {
 			// 	this.$refs.supermapDetail.setMarkersByType(markersList, type);
 			// }, 3000)

+ 1 - 1
src/components/supermap.vue

@@ -561,7 +561,7 @@ export default {
               _that.map = window.L.map(_that.mapDiv, loadConfiguration)
 
               window.L.supermap.tiledMapLayer(url).addTo(_that.map)
-            },2000)
+            },1000)
 
           }
         // })