MapsforgeView constructor
MapsforgeView({
- Key? key,
- required MapModel mapModel,
- List<
Widget> ? children, - 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),
];
}
}