Creating New Layers
class CustomLayer extends StatelessWidget {
const CustomLayer({super.key});
@override
Widget build(BuildContext context) {
final mapState = FlutterMapState.of(context);
// Use `mapState` as necessary, for example `mapState.zoom`
}
}Last updated
Was this helpful?