I want to add markers by clicking the map and remove them by clicking
on a link in the info window.
my script didn't work if you add multiple marker and drag them
arround.

After dragging you can't remove the markers again.

http://variouselmts.com/happytrees/map2.html

On Oct 12, 7:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Oct 12, 1:37 pm,VariousElmts<[EMAIL PROTECTED]> wrote:
>
> > Oh man, I studied the code of all posted examples and tried it again
> > and again
>
> > I think it works much better now, but still don't work as it should. I
> > am done.
> > I need to to this as a project for my university but I don't come a
> > step further:
>
> >http://variouselmts.com/happytrees/map2.html
>
> > here is the code
>
> You don't need to post the code, you posted a link.
>
>
>
> > Can somebody help me with that? or explain it to me in a simple way,
> > thanks a lot
>
> Help you with what?  How should it work?
>
>
>
> > On Oct 3, 10:31 pm, Mike Williams <[EMAIL PROTECTED]> wrote:
>
> > > Code launched from a HTML <a href="javascript:..."> tag executes in
> > > global context, and can only access global variables.
>
> > > Your "map" and "markers" variables are local to your initialize()
> > > function, so they're not available in global context.
>
> > > When you get that working, you will need to do something to prevent
> > > someone clicking on "RemoveThis Marker" more than once. E.g. close the
> > > info window when youremovethe marker. Attempting toremoveanoverlay
> > > that has already been removed causes problems.
>
> > > --http://econym.org.uk/gmap
> > > The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to