After a little thought, I came up with a very hacker strategy for this. I include this for academic curiosity, but I would not recommend implementing it on a production site.
In pseudo code:
onPolygonMouseover: setTimeout(0 ms) onTimeout: Find all elements in the dom with cursor == pointer Set pointer to crosshair
jQuery can be useful for finding all elements with cursor pointer ==. Alternatively, you can just iterate over the entire DOM.
Why time out?
A timeout is that I'm not sure what order the API provides events. If your event is processed before the internal API events, your cursor may be overwritten by the internal code.
Why timeout 0?
A timeout of 0 pushes the code onto the JS execution stack. It will be executed the next time a gap is executed in the execution of the code. It should be as soon as all the event processing code is complete.
source share