Hi all,

I have been using the GPolygon "click" event in order to change the
colour of its line and filling area.

I used the same code as in this example:

http://gmaps-samples.googlecode.com/svn-history/r2142/trunk/poly/mymapstoolbar.html

The code I refer to is this:

google.maps.Event.addListener(shape, "click", function(latlng, index)
{
                if (typeof index == "number") {
                        shape.deleteVertex(index);
                } else {
                        var newColor = getShapeColor(false);
                        shape.setStrokeStyle({color: newColor, weight: 2, 
opacity: 0.7});
                        shape.setFillStyle({color: newColor, opacity: 0.2});
                }
        });

The problem is that with v=2 (.140) it works correctly, but with v=2.x
(.143) it gets an error. It seems as if the arguments (latlng, index)
in the click event function have been changed.

Can anyone help me? Do I submit a bug?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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