{"version":"0.1.0","code":"0000","result":true,"message":"处理成功","errdetail":"","timestamp":1671516310497,"data":{"id":71712821,"title":"2.5.4.5 简易三维","slug":"upc7nt","format":"lake","bookId":26046811,"body":null,"body_draft":null,"body_html":"
简易三维开 调用示例 | |
简易三维关 调用示例 |
无
int com.autonavi.gbl.map.model.MapViewStateType.MAP_VIEWSTATE_IS_SIMPLE3D_ON = 29
void com.autonavi.gbl.map.OperatorBusiness.setMapViewState(@MapViewStateType.MapViewStateType1 int type, boolean enable)
boolean com.autonavi.gbl.map.OperatorBusiness.getMapViewState(@MapViewStateType.MapViewStateType1 int type)
业务类型只能获取setMapViewState之后的结果(因为涉及到异步,所以getMapViewState返回的结果可能是未真正生效的结果)
说明:函数详情,请复制函数名称到在线API搜索
//创建mapview实例\n...\n\n//获取简易三维开关状态\nboolean isSimple3DOn = mapView.getOperatorBusiness().getMapViewState(MapViewStateType.MAP_VIEWSTATE_IS_SIMPLE3D_ON);\n\nif (isSimple3DOn) {\n //设置简易三维关\n\tmapview.getOperatorBusiness().setMapViewState(MapViewStateType.MAP_VIEWSTATE_IS_SIMPLE3D_ON, isSimple3DOn);\n} else {\n //设置简易三维开\n mapview.getOperatorBusiness().setMapViewState(MapViewStateType.MAP_VIEWSTATE_IS_SIMPLE3D_ON, !isSimple3DOn);\n}