MapsforgeView constructor

MapsforgeView({
  1. Key? key,
  2. required MapModel mapModel,
  3. List<Widget>? children,
  4. ContextMenuBuilder? contextMenuBuilder,
})

Implementation

MapsforgeView({super.key, required this.mapModel, List<Widget>? children, this.contextMenuBuilder}) {
  if (children != null) {
    _children = children;
  } else {
    _children = [
      // Shows a ruler with distance information in the left-bottom corner of the map
      DistanceOverlay(mapModel: mapModel),
      // Shows zoom-in and zoom-out buttons
      ZoomOverlay(mapModel: mapModel),
      // shows the indoorlevel buttons
      IndoorlevelOverlay(mapModel: mapModel),
      // shows an icon in the right-upper corner to reset rotation if rotation is active
      RotationResetOverlay(mapModel: mapModel),
    ];
  }
}