iconFactory

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.

Defaults to null.