DashEvSearchInit

Properties

Link copied to clipboard
abstract var iconFactory: (marker: EvStationMarker, context: Context, isNightTheme: Boolean) -> List<() -> Bitmap>?

Custom icon factory for EV station markers on the map. Given EvStationMarker, Context and isNightTheme flag return an ordered list of up to 4 fallback Bitmap variant factories (most detailed first). The map's collision engine renders the first variant that fits and falls back to the next ones automatically. A factory is invoked only when its variant is missing from the image cache, so the list itself must be cheap to build. If null, default icons will be used.

Link copied to clipboard
abstract var iconIdFactory: (marker: EvStationMarker, context: Context, isNightTheme: Boolean) -> String?

Custom icon factory for EV station markers IDs on the map. Given EvStationMarker, Context and isNightTheme flag return a String. If null, default marker ID will be calculated.

Link copied to clipboard
abstract var iconOffset: List<Double>?

Offset for EV station marker icons, as a list of x, y values. If null, default offset will be used.

Link copied to clipboard

Whether a favorite charging station is drawn by this map layer instead of being excluded from it. Set to true only when iconFactory paints its own favorite indicator for such a marker - otherwise it would be drawn twice, once here and once by the favorites layer.

Link copied to clipboard
abstract var sortKey: (marker: EvStationMarker) -> Double?

Custom sort key function for ordering EV station markers on the map. If null, default sorting will be used.

Link copied to clipboard

Custom modifier for EV station power range filtering based on zoom level. Given the current power range filter and zoom level, returns the adjusted power range. If null, no zoom based power range filtering will be applied.