flutter_map_compass 1.1.0 copy "flutter_map_compass: ^1.1.0" to clipboard
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.

example/example.md

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? #

7
likes
160
pub points
88%
popularity

Publisher

verified publisherjoscha-eckert.de

A simple compass for flutter_map. It shows the rotation of the map and resets the rotation back to 0 when tapped.

Repository (GitHub)
View/report issues

Topics

#flutter-map #map

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter, flutter_map

More

Packages that depend on flutter_map_compass