public class RouteOverlayOptions
extends java.lang.Object
| 构造器和说明 |
|---|
RouteOverlayOptions() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setArrowColor(int arrowColor)
设置路线上转弯处箭头的颜色
Set the color of the arrow at the turn on the route |
void |
setArrowOnTrafficRoute(Bitmap arrowOnTrafficRoute)
设置浮于道路上的『小箭头』图标的纹理位图
Set the texture bitmap of the "small arrow" icon floating on the road. |
void |
setArrowSideColor(int arrowSideColor)
设置3D箭头侧面颜色,只有显示 3D箭头情况加才有效
Set the side color of 3D arrows, only effective when 3D arrows are displayed |
void |
setFairWayRes(Bitmap fairWayRes)
设置路线虚线纹理
Set route dashed line texture |
void |
setJamTraffic(Bitmap jamTraffic)
设置交通状况拥堵下的纹理位图
Set the texture bitmap under congested traffic conditions. |
void |
setLineWidth(float lineWidth)
设置导航线路的宽度
Set the width of the navigation route |
void |
setNormalRoute(Bitmap normalRoute)
设置无路况路线的纹理
Set the texture of routes without traffic conditions. |
void |
setOnRouteCameShow(boolean routeCameShow)
设置路线上的摄像头气泡是否显示
Set whether the camera bubble on the route is displayed. |
void |
setPassFairRoute(Bitmap passFairRoute)
自定义走过的步行路线纹理(虚线)
Customize passed walking route texture (dashed line). |
void |
setPassRoute(Bitmap passRoute)
自定义走过的路线纹理(实线)
Customize passed route texture (solid line). |
void |
setRect(Rect rect)
设置全览状态下,路线距离四周的边距
Set the margin of the route from the surroundings in the overview state |
void |
setSlowTraffic(Bitmap slowTraffic)
设置交通状况迟缓下的纹理位图
Set the texture bitmap under slow traffic conditions. |
void |
setSmoothTraffic(Bitmap smoothTraffic)
设置交通状况情况良好下的纹理位图
Set the texture bitmap under good traffic conditions. |
void |
setTurnArrowIs3D(boolean turnArrowIs3)
设置是否显示3D箭头,默认显示
Set whether to display 3D arrows, displayed by default |
void |
setUnknownTraffic(Bitmap unknownTraffic)
设置交通状况未知下的纹理位图
Set the texture bitmap under unknown traffic conditions. |
void |
setVeryJamTraffic(Bitmap veryJamTraffic)
设置交通状况非常拥堵下的纹理位图
Set the texture bitmap under very congested traffic conditions |
public void setFairWayRes(Bitmap fairWayRes)
fairWayRes -
建议使用新接口RouteOverlayOptions.setDashedLineColor(CoreRouteDashedLineColor)
It is recommended to use the new interface RouteOverlayOptions.setDashedLineColor(CoreRouteDashedLineColor)
public void setPassRoute(Bitmap passRoute)
RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)
默认走过路线置灰功能为关,需要在AMapNaviViewOptions.setAfterRouteAutoGray(boolean)打开,该方法才生效
The default passed route graying function is off. It needs to be turned on in AMapNaviViewOptions.setAfterRouteAutoGray(boolean) for this method to take effect
passRoute - public void setPassFairRoute(Bitmap passFairRoute)
建议使用新接口RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)
It is recommended to use the new interface RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)
默认走过路线置灰功能为关,需要在AMapNaviViewOptions.setAfterRouteAutoGray(boolean)打开,该方法才生效
The default passed route graying function is off. It needs to be turned on in AMapNaviViewOptions.setAfterRouteAutoGray(boolean) for this method to take effect
passFairRoute - public void setRect(Rect rect)
rect - public void setOnRouteCameShow(boolean routeCameShow)
routeCameShow - true代表显示,false代表不显示public void setArrowColor(int arrowColor)
arrowColor - 颜色值public void setVeryJamTraffic(Bitmap veryJamTraffic)
veryJamTraffic - 位图图片public void setSmoothTraffic(Bitmap smoothTraffic)
建议使用新接口com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
It is recommended to use the new interface com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
smoothTraffic - 位图图片public void setUnknownTraffic(Bitmap unknownTraffic)
建议使用新接口com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
It is recommended to use the new interface com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
unknownTraffic - 位图图片public void setSlowTraffic(Bitmap slowTraffic)
建议使用新接口com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
It is recommended to use the new interface com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
slowTraffic - 位图图片public void setJamTraffic(Bitmap jamTraffic)
建议使用新接口com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
It is recommended to use the new interface com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
jamTraffic - 位图图片public void setArrowOnTrafficRoute(Bitmap arrowOnTrafficRoute)
注意:使用SDK自动画路时,无法通过此接口自定义路线上小箭头的纹理样式,可通过自定义带小箭头的路线纹理来实现。
Note: When using SDK automatic route drawing, the texture style of the small arrow on the route cannot be customized through this interface. It can be achieved by customizing the route texture with small arrows.
注意:需要通过 RouteOverLay.setArrowOnRoute(boolean) 设置为true来显示自定义小箭头,才会生效。自定义小箭头默认是不显示的。
Note: Custom small arrows need to be displayed by setting RouteOverLay.setArrowOnRoute(boolean) to true to take effect. Custom small arrows are not displayed by default.
arrowOnTrafficRoute - 位图图片public void setNormalRoute(Bitmap normalRoute)
建议使用新接口com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
It is recommended to use the new interface com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List
normalRoute - 纹理图片public void setLineWidth(float lineWidth)
lineWidth - 单位:像素public void setTurnArrowIs3D(boolean turnArrowIs3)
turnArrowIs3 - true 显示,false 不显示public void setArrowSideColor(int arrowSideColor)
arrowSideColor -