Class RouteHelper
com.yandex.mapkit.map
public class RouteHelper
Methods
native void | applyJamStyle( ColoredPolylineMapObject polyline, JamStyle style) | Applies jam style. |
native void | applyManeuverStyle( ColoredPolylineMapObject polyline, ManeuverStyle style) | Applies a maneuver style. |
native JamStyle | createDefaultJamStyle() | Creates a default traffic style. |
native ManeuverStyle | createDefaultManeuverStyle() | Creates a default maneuver style. |
native JamStyle | createDisabledJamStyle() | Creates a disabled traffic jams style. |
native void | updatePolyline( ColoredPolylineMapObject polyline, DrivingRoute route, JamStyle style) | Sets new geometry and colors for a polyline. |
native void | applyJamStyle( ColoredPolylineMapObject polyline, JamStyle style) | Applies jam style. |
native void | applyManeuverStyle( ColoredPolylineMapObject polyline, ManeuverStyle style) | Applies a maneuver style. |
native JamStyle | createDefaultJamStyle() | Creates a default traffic style. |
native ManeuverStyle | createDefaultManeuverStyle() | Creates a default maneuver style. |
native JamStyle | createDisabledJamStyle() | Creates a disabled traffic jams style. |
native void | updatePolyline( ColoredPolylineMapObject polyline, DrivingRoute route, JamStyle style) | Sets new geometry and colors for a polyline. |
Method Detail
applyJamStyle
public static native void applyJamStyle (ColoredPolylineMapObject polyline, JamStyle style)
Applies jam style.
Updates colors for jam types provided in style parameter. Default color is 0xffffffff.applyManeuverStyle
public static native void applyManeuverStyle (ColoredPolylineMapObject polyline, ManeuverStyle style)
Applies a maneuver style.
This method should be called every time after updatePolyline occurs; otherwise, the default maneuver style is applied.createDefaultJamStyle
public static native JamStyle createDefaultJamStyle ()
Creates a default traffic style.
Default values: colors : Blocked : 0x000000ff, Free : 0x00ff00ff, Hard : 0xff0000ff, Light : 0xffff00ff, Unknown : 0x909090ff, VeryHard : 0xa00000ffcreateDefaultManeuverStyle
public static native ManeuverStyle createDefaultManeuverStyle ()
Creates a default maneuver style.
Default values: fillColor : 0x000000ff outlineColor : 0xffffffff outlineWidth : 2.f length : 80 triangleHeight : 16 enabled : falsecreateDisabledJamStyle
public static native JamStyle createDisabledJamStyle ()
Creates a disabled traffic jams style.
Colors : Blocked : 0x909090ff, Free : 0x909090ff, Hard : 0x909090ff, Light : 0x909090ff, Unknown : 0x909090ff, VeryHard : 0x909090ffupdatePolyline
public static native void updatePolyline (ColoredPolylineMapObject polyline, DrivingRoute route, JamStyle style)
Sets new geometry and colors for a polyline.
If style.enabled = false, the polyline is drawn using the color for the Unknown jam type.