Page 1 of 1

Getting a handle on map markers

Posted: Fri Feb 27, 2015 4:44 am
by Cody Blue

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


Getting a handle on map markers

Posted: Sat Feb 28, 2015 11:39 pm
by Alena Prykhodko

Hello,

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