Interface StyleProvider

Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.road_events_layer

interface StyleProvider

Summary

Methods

Type and modifiers

Method and Description

boolean

provideStyle(@NonNull RoadEventStylingProperties roadEventStylingProperties,
             boolean isNightMode,
             float scaleFactor,
             @NonNull RoadEventStyle style)

Provide style for given road event.

Methods

provideStyle

@UiThread
boolean provideStyle(@NonNull RoadEventStylingProperties roadEventStylingProperties,
                     boolean isNightMode,
                     float scaleFactor,
                     @NonNull RoadEventStyle style)

Provide style for given road event.

Must produce same style for same input arguments.

Parameters

scaleFactor

Scale factor of a map window displaying this road event. Road event icon image scale factor must match this value.

Returns

false if road event must not be displayed at all.