buildViewWithConfiguration method

Widget buildViewWithConfiguration(
  1. int creationId,
  2. PlatformViewCreatedCallback onPlatformViewCreated, {
  3. required MapWidgetConfiguration widgetConfiguration,
  4. MapConfiguration mapConfiguration = const MapConfiguration(),
  5. MapObjects mapObjects = const MapObjects(),
})

Returns a widget displaying the map view.

Implementation

Widget buildViewWithConfiguration(
  int creationId,
  PlatformViewCreatedCallback onPlatformViewCreated, {
  required MapWidgetConfiguration widgetConfiguration,
  MapConfiguration mapConfiguration = const MapConfiguration(),
  MapObjects mapObjects = const MapObjects(),
}) {
  return buildViewWithTextDirection(
    creationId,
    onPlatformViewCreated,
    initialCameraPosition: widgetConfiguration.initialCameraPosition,
    textDirection: widgetConfiguration.textDirection,
    markers: mapObjects.markers,
    polygons: mapObjects.polygons,
    polylines: mapObjects.polylines,
    circles: mapObjects.circles,
    tileOverlays: mapObjects.tileOverlays,
    gestureRecognizers: widgetConfiguration.gestureRecognizers,
    mapOptions: jsonForMapConfiguration(mapConfiguration),
  );
}