buildViewWithConfiguration method
Widget
buildViewWithConfiguration(
- int creationId,
- PlatformViewCreatedCallback onPlatformViewCreated, {
- required MapWidgetConfiguration widgetConfiguration,
- MapConfiguration mapConfiguration = const MapConfiguration(),
- 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),
);
}