wesmiler 6 years ago
parent
commit
efd4cf7c48
1 changed files with 4 additions and 2 deletions
  1. 4 2
      public/static/weixin/js/shop-map.js

+ 4 - 2
public/static/weixin/js/shop-map.js

@@ -283,8 +283,10 @@ console.log(_this.mapParams)
             ComplexCustomOverlay.prototype.draw = function () {
                 var map = this._map;
                 var pixel = map.pointToOverlayPixel(this._point);
-                this._div.style.left = pixel.x - 40 + "px";
-                this._div.style.top = pixel.y-100 + "px";
+                this._div.style.left = pixel.x + "px";
+                // this._div.style.left = pixel.x - 40 + "px";
+                this._div.style.top = pixel.y+ "px";
+                // this._div.style.top = pixel.y-100 + "px";
             }