fix(map): 修复Cesium地图选择器在禁用状态下仍获取位置的问题
parent
ef395ceab1
commit
38f7594cf7
|
|
@ -86,6 +86,7 @@ const MapSelector = (props) => {
|
|||
if (longitude && latitude) {
|
||||
addMarkPoint({ longitude, latitude });
|
||||
}
|
||||
if (!disable) {
|
||||
getLongitudeAndLatitude((error, coords) => {
|
||||
if (error)
|
||||
return;
|
||||
|
|
@ -93,6 +94,7 @@ const MapSelector = (props) => {
|
|||
setCurrentLatitude(latitude);
|
||||
setCurrentLongitude(longitude);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// 初始化地图
|
||||
|
|
|
|||
Loading…
Reference in New Issue