c9211f2a by ex

添加提示

1 parent ee4d6441
...@@ -215,11 +215,9 @@ angular.module('myApp') ...@@ -215,11 +215,9 @@ angular.module('myApp')
215 215
216 relocateControl.onclick = function() { 216 relocateControl.onclick = function() {
217 // map.panTo(myMarker.position); 217 // map.panTo(myMarker.position);
218 layer.open({ 218
219 content: '正在定位'
220 })
221 initLocation() 219 initLocation()
222 map.setZoom(15); 220 // map.setZoom(15);
223 } 221 }
224 map.getContainer().appendChild(relocateControl); 222 map.getContainer().appendChild(relocateControl);
225 return relocateControl; 223 return relocateControl;
...@@ -291,7 +289,9 @@ angular.module('myApp') ...@@ -291,7 +289,9 @@ angular.module('myApp')
291 // enableHighAccuracy:true, 289 // enableHighAccuracy:true,
292 // maximumAge:1000 290 // maximumAge:1000
293 // } 291 // }
294 292 layer.open({
293 content: '正在定位'
294 })
295 getlocation(); 295 getlocation();
296 function getlocation() { 296 function getlocation() {
297 // wx.getLocation({ 297 // wx.getLocation({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!