添加提示
Showing
1 changed file
with
5 additions
and
5 deletions
| ... | @@ -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({ | ... | ... |
-
Please register or sign in to post a comment