bihuisong 1 year ago
parent
commit
a064da5116
1 changed files with 8 additions and 8 deletions
  1. 8 8
      zhsq_qk-ui/src/views/supermap/supermap.vue

+ 8 - 8
zhsq_qk-ui/src/views/supermap/supermap.vue

@@ -222,11 +222,10 @@ export default {
             return;
           }
           let icon = new window.L.Icon({
-            //需要修改
-            iconUrl: iconList['marker'],
-            iconSize: [48, 48],
-            iconAnchor: [24, 40],
-            popupAnchor: [-3, -40],
+            iconUrl: iconList['yy'],
+            iconAnchor: [50, 50],
+            iconSize: [37, 64],
+            popupAnchor: [-33, -47],
             shadowSize: [41, 41],
           })
           if (that.marker) {
@@ -296,16 +295,17 @@ export default {
       });
     },
     addMark: function (options) {
+      debugger
       let that = this;
       let marker = "markers" + options.id;
       marker = L.marker(
-        [options.longitude,options.latitude]
+        [options.latitude,options.longitude]
         ,{
           icon: L.icon({
             iconUrl: getIcon(options.buildType),
             iconAnchor: [50, 50],
-            iconSize: [48, 48],
-            popupAnchor: [-3, -40],
+            iconSize: [37, 64],
+            popupAnchor: [-33, -47],
             shadowSize: [41, 41],
           })
         }