Shapefile Shape Configuration
data class ShapefileShapeConfiguration(val attributes: ShapeAttributes? = null, val highlightAttributes: ShapeAttributes? = null, val placemarkAttributes: PlacemarkAttributes? = null, val highlightPlacemarkAttributes: PlacemarkAttributes? = null, val altitudeMode: AltitudeMode = AltitudeMode.RELATIVE_TO_GROUND, val altitude: Double = 0.0, val height: Double = 0.0, val name: String? = null)
Per-record customization returned by the ShapefileLayerFactory shapeConfiguration callback. Match WebWorldWind's plain-object configuration: setting attributes / placemarkAttributes overrides the defaults; setting altitude or height switches polylines from SurfacePolyline to Path and polygons from SurfacePolygon to extruded Polygon; returning null from the callback skips the record entirely.
Note on surface shapes: WorldWindKotlin uses Polygon with AltitudeMode.CLAMP_TO_GROUND in place of SurfacePolygon, and Path with CLAMP_TO_GROUND in place of SurfacePolyline. The configuration's altitude of 0 (the default) produces a clamped shape; non-zero values produce a free-floating shape.
Constructors
Link copied to clipboard
constructor(attributes: ShapeAttributes? = null, highlightAttributes: ShapeAttributes? = null, placemarkAttributes: PlacemarkAttributes? = null, highlightPlacemarkAttributes: PlacemarkAttributes? = null, altitudeMode: AltitudeMode = AltitudeMode.RELATIVE_TO_GROUND, altitude: Double = 0.0, height: Double = 0.0, name: String? = null)