Class JamUtils

com.yandex.mapkit.transport.masstransit

public class JamUtils

Methods

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

Applies the traffic jam style.

native JamStyle createDefaultJamStyle()

Creates a default traffic style.

native JamStyle createDisabledJamStyle()

Creates a disabled traffic jams style.

native RoutePainter createRoutePainter()

Method Detail

applyJamStyle

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

Applies the traffic jam style.

Updates colors for the traffic jam 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 disabled traffic jams style.

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

createRoutePainter

public static native RoutePainter createRoutePainter ()