bihuisong 1 年之前
父節點
當前提交
999a94dbfe
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      zhsq_qk-ui/src/views/supermap/supermap.vue

+ 2 - 1
zhsq_qk-ui/src/views/supermap/supermap.vue

@@ -203,6 +203,7 @@ export default {
             return;
             return;
           }
           }
           let icon = new window.L.Icon({
           let icon = new window.L.Icon({
+            //需要修改
             iconUrl: iconList['marker'],
             iconUrl: iconList['marker'],
             iconSize: [48, 48],
             iconSize: [48, 48],
             iconAnchor: [24, 40],
             iconAnchor: [24, 40],
@@ -283,7 +284,7 @@ export default {
         [options.longitude,options.latitude]
         [options.longitude,options.latitude]
         ,{
         ,{
           icon: L.icon({
           icon: L.icon({
-            iconUrl: getIcon(2),
+            iconUrl: getIcon(options.buildType),
             iconAnchor: [50, 50],
             iconAnchor: [50, 50],
             iconSize: [48, 48],
             iconSize: [48, 48],
             popupAnchor: [-3, -40],
             popupAnchor: [-3, -40],