geoView function

GeoView geoView({
  1. required Projection projection,
  2. required dynamic geoJson,
  3. Color? fillColor,
  4. Color? strokeColor,
  5. double strokeWidth = 1.0,
  6. void onFeatureTap(
    1. dynamic feature,
    2. Point position
    )?,
  7. bool antiAlias = true,
})

Creates a GeoView widget with the given parameters.

Implementation

GeoView geoView({
  required Projection projection,
  required dynamic geoJson,
  Color? fillColor,
  Color? strokeColor,
  double strokeWidth = 1.0,
  void Function(dynamic feature, Point position)? onFeatureTap,
  bool antiAlias = true,
}) {
  return GeoView(
    projection: projection,
    geoJson: geoJson,
    fillColor: fillColor,
    strokeColor: strokeColor,
    strokeWidth: strokeWidth,
    onFeatureTap: onFeatureTap,
    antiAlias: antiAlias,
  );
}