Hi, I currently have this page showing a "Show on Map" button and a switch. if the button is clicked, it navigates to another page where there's a marker dropped to Googe Maps corresponding to the location and name passed from this page.
I'm trying to add an action to the switch, when it's toggled on, a click to "Show on Map" will navigate to the same page with the Google Maps marker but this time, the marker will be turned to a different color. It indicates that this place is visited.
I tried to add an action to the switch and direct it to the other page, but I suppose I need to also pass and receive some reference from this page with the corresponding location and name to make this work. Also, this might be easier to do if this happens on a bottom sheet on the same page with a Google Maps, but unfortunately the map and marker are on a different page.
I'm not sure if this is possible and if yes, how am I supposed to do this? Can someone please enlighten me?