Showing
1 changed file
with
5 additions
and
1 deletions
| @@ -399,8 +399,12 @@ Page({ | @@ -399,8 +399,12 @@ Page({ | ||
| 399 | wx.showTabBar(); | 399 | wx.showTabBar(); |
| 400 | }, | 400 | }, |
| 401 | moveToLocation(){ | 401 | moveToLocation(){ |
| 402 | + let map=this.data.map | ||
| 403 | + map.latitude=this.user.latitude | ||
| 404 | + map.longitude=this.user.longitude | ||
| 405 | + map.scale=mapScale | ||
| 402 | this.setData({ | 406 | this.setData({ |
| 403 | - [`map.scale`]:mapScale, | 407 | + map:map |
| 404 | }) | 408 | }) |
| 405 | this.mapCtx.moveToLocation({ | 409 | this.mapCtx.moveToLocation({ |
| 406 | success:(res)=>{ | 410 | success:(res)=>{ |
-
Please register or login to post a comment