I have a list of 'venues' on one page, when a 'venue' is clicked the _id is stored in a lsv and the app navigates to another page.
on this page a read service is invoked using the _id stored in local storage. The response is mapped to various components on the page, one component being a google map.
This works fine.
but if the user leaves the page and clicks another venue, the marker of the previous venue is still shown in the map, as well as the marker for the new venue.
How do I clear the previous map marker before the new marker location is mapped?
I've had a look at these pages but couldn't figure it out:
https://getsatisfaction.com/apperyio/...
https://developers.google.com/maps/do...
Thank you