GeoJsonLayerFactory

Convenience builder for a BulkFeatureLayer over a static GeoJSON document. Wraps the text in a GeoJsonBulkFeatureSource, constructs a BulkFeatureLayer with the GeoJSON- appropriate defaults (always-clamp-to-ground, simplestyle keys consumed automatically), loads it, and returns the layer ready to add to the engine. The layer's pick-enabled flag is left at the BulkFeatureLayer default; callers that want a pick-disabled or pick- filtered layer set isPickEnabled (or per- renderable picks) themselves.

For cache integration use the underlying GeoJsonBulkFeatureSource directly: CachedBulkFeatureSource(GeoJsonBulkFeatureSource(text), store) and wire into BulkFeatureLayer yourself; the cache decorator works the same way as it does for WFS / Shapefile sources.

Functions

Link copied to clipboard
suspend fun createLayer(text: String, displayName: String? = GEO_JSON_LAYER_NAME, density: Float = DEFAULT_DENSITY, labelVisibilityThreshold: Double = DEFAULT_LABEL_VISIBILITY_THRESHOLD, customLogicToApplyProperties: Renderable.(LinkedHashMap<String, Any?>) -> Unit = {}): BulkFeatureLayer