小程序打开地图坐标类型转换

This commit is contained in:
devil 2020-03-02 18:38:43 +08:00
parent 6caa708a6f
commit 6d0d6efbfa
5 changed files with 10 additions and 10 deletions

View File

@ -609,8 +609,8 @@ App({
my.openLocation({
name: values[0],
address: values[1],
longitude: values[2],
latitude: values[3],
longitude: parseFloat(values[2]),
latitude: parseFloat(values[3])
});
break;

View File

@ -551,8 +551,8 @@ App({
swan.openLocation({
name: values[0],
address: values[1],
longitude: values[2],
latitude: values[3]
longitude: parseFloat(values[2]),
latitude: parseFloat(values[3])
});
break;

View File

@ -520,8 +520,8 @@ App({
qq.openLocation({
name: values[0],
address: values[1],
longitude: values[2],
latitude: values[3],
longitude: parseFloat(values[2]),
latitude: parseFloat(values[3])
});
break;

View File

@ -526,8 +526,8 @@ App({
tt.openLocation({
name: values[0],
address: values[1],
longitude: values[2],
latitude: values[3],
longitude: parseFloat(values[2]),
latitude: parseFloat(values[3])
});
break;

View File

@ -524,8 +524,8 @@ App({
wx.openLocation({
name: values[0],
address: values[1],
longitude: values[2],
latitude: values[3],
longitude: parseFloat(values[2]),
latitude: parseFloat(values[3])
});
break;