Closed Dereumaux-Adrien closed 4 years ago
Hi @Dereumaux-Adrien !
Looks like you're missing the plugin declaration in the MapOptions, this:
options: MapOptions(
center: LatLng(51.5, -0.09),
zoom: 5.0,
maxZoom: 19.0,
minZoom: 2.0,
onTap: _onTap),
should be:
options: MapOptions(
center: LatLng(51.5, -0.09),
zoom: 5.0,
maxZoom: 19.0,
minZoom: 2.0,
onTap: _onTap,
plugins: [PopupMarkerPlugin()],
),
Let me know how that goes.
Indeed, that was exactly this.
Works perfectly now, thank you
Both examples run smoothly in my flutter_map_marker_popup clone.
But when I try a simpler version in my own project, I get the following stack:
Here you can find my dart code:
If I use the simple MarkerLayerOptions instead of the PopupMarkerLayerOptions, everything runs smoothly.
My pubspec.yaml: