Maps v3 API -- mouseover and mouseout?

1 view
Skip to first unread message

Stephanie

unread,
Nov 17, 2009, 11:52:46 AM11/17/09
to Google AJAX APIs
I'm in version 3 of the google maps api, and I'm trying to get the
polygon to change fill color on mouseover and then return to the
original fill color on mouseout.

Upon going through the API, it seems like there is only:
click,
doubleclick
mousedown,
mouseup,
mousemove

...mousemove doesn't do what I want, obviously, because that's
whenever the mouse is moved over that polygon so it triggers a lot,
but doesn't trigger when the mouse is moved off.

Am I missing something?

Please help, thanks.

Vision Jinx

unread,
Nov 20, 2009, 8:26:30 PM11/20/09
to Google AJAX APIs
Hi,

If this is not included in the api you may need to add your own
control in there for it. Since Maps obfuscates their code it may take
a bit of digging. I don't use the maps api much but if you provide a
link to your app maybe someone here can have a look.

Alternatively, you can also try you query in the Maps API group
too. :)

Cheers!
Vision Jinx
Reply all
Reply to author
Forward
0 new messages