Explorar el Código

Merge pull request #1377 from gzxy-0102/2.0

表单地图组件:修复有坐标时地图展示级别问题
Jiang Qinghua hace 3 años
padre
commit
395123b2fe
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      resources/views/form/map.blade.php

+ 2 - 1
resources/views/form/map.blade.php

@@ -217,7 +217,8 @@
             position: new AMap.LngLat(lng.val(), lat.val()),
             draggable: true,
             map:map,
-            icon:'//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png'
+            icon:'//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',
+            zoom:15
         });
         if (!lng.val() || !lat.val()){
             var geolocation = new AMap.Geolocation({