data
Inline GeoJSON features supplied up front, applied to com.xweather.mapsgl.sources.GeoJSONSource.data when com.xweather.mapsgl.map.MapController.addSource creates the source. Use this when the features are already in hand:
val source = GeoJSONSourceDescriptor(id = "country-region")
source.data = FeatureCollection.fromJson(geoJsonString)
controller.addSource(source)Content copied to clipboard
Takes precedence over bundledAssetPath when both are set. Leave null to drive the source from url, from bundledAssetPath, or by assigning com.xweather.mapsgl.sources.GeoJSONSource.data after the source is added.
Excluded from data-class equality: two descriptors differing only in data compare equal.