Click: function (e) {
Wx. OpenLocation ({
Latitude: the Number (' 121.455048 '),
Longitude: the Number (' 31.293459 '),
Scale: 14,
Name: 'big ningde than yi',
Address: '602 Shanghai district Peng Jiang road,
Success: the function (res) {
The console. The log (res)
},
Fail: function (res) {
The console. The log (res)
}
})
},
Display error: {errmsg: "openlocation: ok"}
CodePudding user response:
Changes are as follows:Latitude: '121.455048',
Longitude: '31.293459'.
CodePudding user response:
Retrieve latitude and longitude values is not marked, it is best to use the SDK address resolution of value, is generally have 5 decimal places, such as 102.71279,CodePudding user response:
You can use the latitude and longitude query https://jingweidu.51240.com/to find the right latitude and longitudeFor example wx. OpenLocation ({
Latitude: 23.122219591780066,
Longitude: 113.33155507738493,
Scale: 14,
Name: 'XXX',
Address: 'XXXX',
Success: the function (res) {
The console. The log (res)
},
Fail: function (res) {
The console. The log (res)
}
})
}