FeatureRenderer

class FeatureRenderer(shapeAttributes: ShapeAttributes? = null, autoApplyStyle: Boolean = true, defaultLineColor: Color? = null, defaultFillColor: Color? = null, density: Float = DEFAULT_DENSITY, labelVisibilityThreshold: Double = DEFAULT_LABEL_VISIBILITY_THRESHOLD, defaultAltitudeMode: AltitudeMode? = null, customLogicToApplyProperties: Renderable.(LinkedHashMap<String, Any?>) -> Unit = {}, simplifyToleranceDeg: Double = 0.0)

Turns a CachedFeatureRow ((geometry, properties_json)) into styled Renderables, with the same rules BulkFeatureLayer used inline. Shared so BulkFeatureLayer (bulk/viewport) and TiledFeatureLayer (tiled) build renderables identically — Point → Label/Placemark, LineString → Path, Polygon → Polygon, and Multi/GeometryCollection geometries fan out.

The config mirrors the layer's styling knobs; build a fresh renderer per load so it captures the layer's current values.

Constructors

Link copied to clipboard
constructor(shapeAttributes: ShapeAttributes? = null, autoApplyStyle: Boolean = true, defaultLineColor: Color? = null, defaultFillColor: Color? = null, density: Float = DEFAULT_DENSITY, labelVisibilityThreshold: Double = DEFAULT_LABEL_VISIBILITY_THRESHOLD, defaultAltitudeMode: AltitudeMode? = null, customLogicToApplyProperties: Renderable.(LinkedHashMap<String, Any?>) -> Unit = {}, simplifyToleranceDeg: Double = 0.0)

Functions

Link copied to clipboard

Styled renderables for one row: applyFeatureStyle defaults (if autoApplyStyle) then customLogicToApplyProperties, applied to each renderable the geometry expands to.