> Could I do it with the remove function?

I don't know what the 'remove' function is.  .removeOverlay() is well
documented.

> but now I have changed the code and i don't have the click listener.
> May be I need to change it back.

Maybe, have you tried that?
You've made a whole bunch of changes, why not make one at a time so
you have a better understanding of what you are doing.
I see your map click listener pretty much as before, and you do need
it anyway.

For some reason you are trying to do an incomplete setstyle, simplify
(take that out) until you have the basics working, then worry about
the colour.

For some reason you have a mousemove listener adding and removing
vertex, why?  Let the API line drawing tool take care of the line.
Look at the drawing toolbar example to see if it has this code ; if it
doesn't, why would you need it?

This is bad syntax (even if harmless)
   line.deleteVertex(1, point);
use the documentation, don't guess.

-- 
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