Commit aecb6355 authored by Qiu Xiang's avatar Qiu Xiang

新增地图类型:公交地图(似乎并没有什么用)

parent 6dbbdf51
......@@ -105,6 +105,7 @@ internal class AMapViewManager : ViewGroupManager<AMapView>() {
"satellite" -> view.map.mapType = AMap.MAP_TYPE_SATELLITE
"navigation" -> view.map.mapType = AMap.MAP_TYPE_NAVI
"night" -> view.map.mapType = AMap.MAP_TYPE_NIGHT
"bus" -> view.map.mapType = AMap.MAP_TYPE_BUS
}
}
......
......@@ -21,8 +21,9 @@ class MapView extends Component {
* - satellite: 卫星地图
* - navigation: 导航地图
* - night: 夜间地图
* - bus: 公交地图
*/
mapType: PropTypes.oneOf(['standard', 'satellite', 'navigation', 'night']),
mapType: PropTypes.oneOf(['standard', 'satellite', 'navigation', 'night', 'bus']),
/**
* 是否启用定位
......
......@@ -16,6 +16,7 @@ export default class MapTypes extends Component {
<Picker.Item label='卫星' value='satellite'/>
<Picker.Item label='导航' value='navigation'/>
<Picker.Item label='夜间' value='night'/>
<Picker.Item label='公交' value='bus'/>
</Picker>,
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment