Showing
1 changed file
with
8 additions
and
9 deletions
| @@ -193,14 +193,13 @@ Page({ | @@ -193,14 +193,13 @@ Page({ | ||
| 193 | }, | 193 | }, |
| 194 | regionchange(e){ | 194 | regionchange(e){ |
| 195 | console.log('regionchange', e) | 195 | console.log('regionchange', e) |
| 196 | - if(typeof this.mapCtx.getScale!='undefined') { | ||
| 197 | - this.mapCtx.getScale({ | ||
| 198 | - success: (res) => { | ||
| 199 | - this.mapData.scale = res.scale; | ||
| 200 | - console.log('regionchange.getScale', res, this.data.map.scale) | ||
| 201 | - }, | ||
| 202 | - }) | ||
| 203 | - } | 196 | + if(typeof this.mapCtx=='undefined') return; |
| 197 | + this.mapCtx.getScale({ | ||
| 198 | + success: (res) => { | ||
| 199 | + this.mapData.scale = res.scale; | ||
| 200 | + console.log('regionchange.getScale', res, this.data.map.scale) | ||
| 201 | + }, | ||
| 202 | + }) | ||
| 204 | 203 | ||
| 205 | this.mapCtx.getCenterLocation({ | 204 | this.mapCtx.getCenterLocation({ |
| 206 | success:(res)=>{ | 205 | success:(res)=>{ |
| @@ -336,7 +335,7 @@ Page({ | @@ -336,7 +335,7 @@ Page({ | ||
| 336 | let namelength = seller.sellername.replace(/[^\x00-\xff]/g, "01").length + 8; | 335 | let namelength = seller.sellername.replace(/[^\x00-\xff]/g, "01").length + 8; |
| 337 | let marker={ | 336 | let marker={ |
| 338 | id: seller.id, | 337 | id: seller.id, |
| 339 | - iconPath: "http://qn.colorcun.com/custom/lite-online/image/circle.png", | 338 | + iconPath: "http://qn.colorcun.com/custom/lite-online/cates/circle.png", |
| 340 | latitude: seller.lat, | 339 | latitude: seller.lat, |
| 341 | longitude: seller.long, | 340 | longitude: seller.long, |
| 342 | width: 7, | 341 | width: 7, |
-
Please register or login to post a comment