Class JamUtils

com.yandex.mapkit.transport.masstransit

public class JamUtils

Methods

native void applyJamStyle(@NonNull ColoredPolylineMapObject polyline, @NonNull JamStyle style)

Applies the traffic style.

native JamStyle createDefaultJamStyle()

Creates a default traffic style.

native JamStyle createDisabledJamStyle()

Creates a style for disabled traffic.

native RoutePainter createRoutePainter()

Method Detail

applyJamStyle

public static native void applyJamStyle (@NonNull ColoredPolylineMapObject polyline, @NonNull JamStyle style)

Applies the traffic style.

Updates colors for traffic types provided in the style parameter. The default color is 0xffffffff.The method calls only the following polyline methods: - setPaletteColor

createDefaultJamStyle

public static native JamStyle createDefaultJamStyle ()

Creates a default traffic style.

Default values: colors : Unknown : 0xccccccff, Blocked : 0x000000ff, Free : 0x38c724ff, Light : 0xf8dd40ff, Hard : 0xfa5728ff, VeryHard : 0xac3818ff,

createDisabledJamStyle

public static native JamStyle createDisabledJamStyle ()

Creates a style for disabled traffic.

Colors : Unknown : 0x6756edff, Blocked : 0x6756edff, Free : 0x6756edff, Light : 0x6756edff, Hard : 0x6756edff, VeryHard : 0x6756edff,

createRoutePainter

public static native RoutePainter createRoutePainter ()