GeoJsonSource constructor

GeoJsonSource({
  1. required FeatureCollection data,
  2. String? promoteId,
})

Implementation

factory GeoJsonSource({
  required FeatureCollection data,
  String? promoteId,
}) =>
    GeoJsonSource.fromJsObject(GeoJsonSourceJsImpl(
      type: 'geojson',
      promoteId: promoteId,
      data: data.jsObject,
    ));