优化MapSelector
parent
ddcbc6c05c
commit
43500d2ba7
|
|
@ -36,7 +36,7 @@ const MapSelector = (props) => {
|
|||
// 初始化地图
|
||||
const initMap = async () => {
|
||||
if (!window.BMapGL) {
|
||||
await dynamicLoadJs("https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr");
|
||||
await dynamicLoadJs("https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr&callback=initialize");
|
||||
}
|
||||
|
||||
setLoading(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue