update
1.优化
This commit is contained in:
@@ -155,7 +155,7 @@ export const Map = {
|
||||
if (lng) {
|
||||
lon = lng;
|
||||
}
|
||||
if (!longitude || !latitude || !type) {
|
||||
if (!lon || !lat || !type) {
|
||||
continue;
|
||||
}
|
||||
// 创建一个 Icon
|
||||
@@ -394,7 +394,6 @@ export const Map = {
|
||||
});
|
||||
this.driveLine.on('error', function (result) {
|
||||
let str = '定位失败:';
|
||||
console.log('error', result);
|
||||
switch (result.info) {
|
||||
case 'PERMISSION_DENIED':
|
||||
str += '浏览器阻止了定位操作';
|
||||
@@ -409,7 +408,6 @@ export const Map = {
|
||||
str += '未知错误';
|
||||
break;
|
||||
}
|
||||
console.log(str);
|
||||
return false;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user