On Aug 11, 9:04 am, Thomas <[email protected]> wrote:
> Hi,
>
> I do have a problem with:
>
> marker.setMap(null);
>
> to remove markers on my map. The code can be found below which is part
> of a chrome extension. The important function is codeAddress at the
> very end of the file. As you can see I set a marker based on the
> country a user selected from a list.
>
> The problem I have is more a sequence problem. I somehow need to
> create the marker object before in the code to probably delete
> existing markers before creating a new one. But I can just not figure
> out how to best change the code to do that. Any help is very much
> appreciated.
>
> The code can be found here:
>
> https://docs.google.com/document/edit?id=1NRLo04HQaaly0cTqK61MATnvHDd...

Where is the map that shows the error?

does:
if (marker) marker.setMap(null);
not work?

  -- Larry

>
> Thanks in advance.
>
> Cheers,
> Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to