sugeng86 / gmaps-samples

Automatically exported from code.google.com/p/gmaps-samples
0 stars 0 forks source link

bug in mymaps toolbar #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. select "placemark" in the toolbar
2. select "line" or "shape" in the toolbar
3. click on the map

What is the expected output? What do you see instead?
I expect to start drawing a line or shape but instead a marker is added to
the map. Anyway, i can still draw the line or shape

What version of the product are you using? On what operating system?
i'm using r2122 on Windows XP

Please provide any additional information below.
I solved this by adding an attribute called 'selected'. This attribute is
set with the buttonId when the method select()is called. Then i check in
the function that's added to the map when the placemark button is pressed
that the selected tool is the correct one

hope it helps

Original issue reported on code.google.com by andresbl...@gmail.com on 18 Jun 2008 at 7:15