flutter_map_compass 1.1.0 flutter_map_compass: ^1.1.0 copied to clipboard
A simple compass for flutter_map. It shows the rotation of the map and resets the rotation back to 0 when tapped.
Basic usage #
@override
Widget build(BuildContext context) {
return FlutterMap(
options: MapOptions(),
children: [
TileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
),
const MapCompass.cupertino(),
],
);
}
Need more information? #
- Read the README.md
- Check out the combined example app that showcases this and other flutter_map packages.