you add it into your event handler function:
NOTE -> check the API to see if that function is correct
aslo you would probable want to create a mouse out handler, this is
done in the same way.
GEvent.addListener(polygon,"mouseover",function(){
// add the logic here
polygon.setStrokeStyle({ "color": "green" });
});
On Mar 20, 5:40 pm, bobby <[email protected]> wrote:
> Hi guys,
>
> iam placing polygons dynamically on map made on search. SoI want to
> add
>
> GEvent.addListener(polygon,"mouseover",function(){
>
> });
>
> where i want to change their colors when i mouseover on polygons.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---