對于地圖調(diào)用
import { MapView }?from?'@haibalai/react-native-arcgis';
class?MainMapView?extends?React.Component
render() {
return (
)
}
}
針對之前說的配置底圖,可以支持切換
```javascript
import { MapManager } from '@haibalai/react-native-arcgis';
changeLayer(layerName: string) {
console.log(layerName);
// 選擇地圖類型
switch (layerName) {
case '天地圖':
MapManager.switchBaseMap('baseMap', '天地圖')
.then((r: any) => {
console.log('成功切換到天地圖', r);
})
.catch((e: any) => {
console.log('失敗切換到天地圖', e);
?https://xiaozhuanlan.com/topic/0824173659