0

I tried for hours now...

Does anyone have an idea how to make a Google Map with two different kind of Markers?

Some markers are blue and some are red. The user should be able to turn off only blue markers, so he sees only the red ones or the other way around.

I tried with multiple Set<Marker> but markers: only allows one Set. I also tried to give the different markers different booleans for visibility but this also didn't work.

Anyone knows how to do this?

Thanks in advance!

OverdoseB12
  • 371
  • 1
  • 7
  • 15
  • 1
    Related: [How can user add multiple marker on google maps flutter](https://stackoverflow.com/questions/58927260/how-can-user-add-multiple-marker-on-google-maps-flutter) – Yrll Mar 20 '23 at 01:48
  • 1
    And after a quick google search, I can see lots of resources / guides. Have you checked them out? Example would be: https://www.fluttercampus.com/guide/73/how-to-add-multiple-markers-on-google-map-flutter/ – Yrll Mar 20 '23 at 01:49
  • @Yrll I know how to add multiple markers. But I don't get how to add multiple markers, where there are two groups of them. Depending on with Group they should look different and have different onTap Functions. – OverdoseB12 Mar 20 '23 at 13:35
  • Then please edit your question and provide a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) that demonstrates the issue so that the community could help you better. – Yrll Mar 27 '23 at 08:34

0 Answers0