Set/change polygon fillColor on click?

2,943 views
Skip to first unread message

Knasboll

unread,
Jan 18, 2011, 3:51:47 AM1/18/11
to Google Maps JavaScript API v3
Is that possible, and if so, how do i do it?

Pil

unread,
Jan 18, 2011, 6:49:02 AM1/18/11
to Google Maps JavaScript API v3
Try to look at the reference.

http://code.google.com/apis/maps/documentation/javascript/reference.html

Polygon has a method setOptions. So you'd have to use something like
that

poly.setOptions( { fillColor: '#0000ff' });
Reply all
Reply to author
Forward
0 new messages