GPS
Showing
1 changed file
with
4 additions
and
4 deletions
| ... | @@ -309,11 +309,11 @@ angular.module('myApp') | ... | @@ -309,11 +309,11 @@ angular.module('myApp') |
| 309 | var result = /\{([\s\S]*)\}/.exec(data); | 309 | var result = /\{([\s\S]*)\}/.exec(data); |
| 310 | var arr = result[1].split(',') | 310 | var arr = result[1].split(',') |
| 311 | if(isAndroid){ | 311 | if(isAndroid){ |
| 312 | latitude = result[0].split('=')[1] | 312 | latitude = arr[0].split('=')[1] |
| 313 | longitude = result[1].split('=')[1] | 313 | longitude = arr[1].split('=')[1] |
| 314 | } else { | 314 | } else { |
| 315 | latitude = result[0].split(':')[1] | 315 | latitude = arr[0].split(':')[1] |
| 316 | longitude = result[1].split(':')[1] | 316 | longitude = arr[1].split(':')[1] |
| 317 | } | 317 | } |
| 318 | layer.open({ | 318 | layer.open({ |
| 319 | content: latitude, | 319 | content: latitude, | ... | ... |
-
Please register or sign in to post a comment