|
@@ -80183,14 +80183,19 @@ and limitations under the License.
|
|
|
if (this.filter.lon) throw new Error('location method can only be called once');
|
|
|
var n = e.toArray();
|
|
|
|
|
|
- if(typeof(n[0])=="string"){
|
|
|
- n[0] = parseFloat(n[0])
|
|
|
- }
|
|
|
- if(typeof(n[1])=="string"){
|
|
|
- n[1] = parseFloat(n[1])
|
|
|
- }
|
|
|
+ // if(typeof(n[0])=="string"){
|
|
|
+ // n[0] = parseFloat(n[0])
|
|
|
+ // }
|
|
|
+ // if(typeof(n[1])=="string"){
|
|
|
+ // n[1] = parseFloat(n[1])
|
|
|
+ // }
|
|
|
console.log('n[0]',n)
|
|
|
- console.log('n[0].typeof',typeof(n[0]))
|
|
|
+ // console.log('n[0].typeof',typeof(n[0]))
|
|
|
+ for(let i =0;i<n.length;i++){
|
|
|
+ if(typeof(n[i])=="string"){
|
|
|
+ n[i] = parseFloat(n[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
return (
|
|
|
(this.filter.lon =typeof(n[0])=="number"? parseFloat(n[0].toFixed(t.FRACTION_DIGITS)): parseFloat(parseFloat(n[0]).toFixed(t.FRACTION_DIGITS))),
|
|
|
(this.filter.lat = typeof(n[1])=="number"?parseFloat(n[1].toFixed(t.FRACTION_DIGITS)): parseFloat(parseFloat(n[1]).toFixed(t.FRACTION_DIGITS))),
|