Cody Blue
Posts: 0
Joined: Sun Aug 25, 2013 2:11 am

Getting a handle on map markers

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?

Image

Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Getting a handle on map markers

Hello,

You need to delete previous marker and then populate another one.
Please look at the similar post https://getsatisfaction.com/apperyio/...

Return to “Issues”