I have a simple map display with a single marker that is displayed based on the address supplied by a backend service. See attached screenshots. Everything works fine, except that when the page is displayed second, third time and so on: the markers from previous displays shows up as well. I'd only like the marker from current display to show.
Can you suggest how I may do this in a simple way?
I was thinking to use .setMap(null), but am not sure how to access the marker correctly (it is named FPD_marker in Appery UI: see screenshot). Invoking Appery("FPD_marker").setMap(null) on page show results in undefined function error. Secondly I am not sure if this would interfere with current marker display.
How may I resolve this?