瀏覽代碼

feat(js): migrate Google Maps options to be compatible with latest API

Google have deprecated and changed options in the API.

See https://developers.google.com/maps/documentation/javascript/reference/map
See #2075
Tony Lam 4 年之前
父節點
當前提交
6bcba757cd
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      wowchemy/assets/js/wowchemy.js

+ 1 - 4
wowchemy/assets/js/wowchemy.js

@@ -263,12 +263,9 @@ function initMap() {
           style: 'SMALL',
           position: 'TOP_LEFT'
         },
-        panControl: false,
         streetViewControl: false,
         mapTypeControl: false,
-        overviewMapControl: false,
-        scrollwheel: true,
-        draggable: true
+        gestureHandling: "cooperative",
       });
 
       map.addMarker({