Skip to content

zeykafx/flutter_map_overlay_widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_map_overlay_widget

Display any widget on top of a flutter_map instance.

Getting Started

Add the package to your pubspec.yaml file:

dependencies:
  flutter_map_overlay_widget: any # or the latest version on pub.dev

Add an OverlayWidgetLayer to your FlutterMap widget, this layer contains a list of OverlayWidget instances. Each OverlayWidget instance contains a bounds property that defines the area where the widget will be displayed and a widget property that contains the widget to be displayed.

import 'package:flutter_map_overlay_widget/flutter_map_overlay_widget.dart';
// ...
FlutterMap(
    children: [
        ...,
        OverlayWidgetLayer(
            overlayWidgets: [
                OverlayWidget(
                    bounds: LatLngBounds(
                        LatLng(..., ...),
                        LatLng(..., ...),
                    ),
                    widget: YourWidget(),
                ),
            ],
        ),
    ]
)

About

display any widgets on a flutter_map instance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages