This page isn't on the net, its offline, i can post the full page
source?
On Jan 26, 1:54 am, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Jan 26, 1:30 am, Adam <[email protected]> wrote:
>
> > I have the below code, it loads ok, but when i click on the map it
> > doesn't place a marker.
> > What should happen is that when you click on the map it should place a
> > marker and when clicked on the map a second time that it should place
> > a marker at the new location and remove the previous one so that there
> > is only ever one marker on the map??
>
> Please provide a link to your page online, not a code listing.
>
> It strikes me that things might work better if you moved the line
> var marker=null;
> from outside the function load() into global scope. Currently I
> believe there is some confusion between all your local variables which
> are called "marker".
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---