Closed indigo-sam closed 7 years ago
Hello,
Sorry for my late answer. Which browser do you use ? Could you please create a JSFiddle example of your map that highlight the issue ? It will be helpful to make some tests.
However, it seems to be a JS issue that can be adressed with some workarounds at first sight : http://stackoverflow.com/questions/7448468/why-cant-i-reliably-capture-a-mouseout-event
@indigo-sam any update or can we close this issue?
This is the mapOption object that I am using. I am having hard time to figure out how to keep and change the the state's color when mouse enters its plot. There are several plots on the each single area. The default attrsHover on area works but the color disappears when mouse enters its plot, I'd like to keep the color(assume it is color A) on until mouse enters a special plot and change the area colorA to color B. How would you do this in eventHandler? When I tried to edit path's fill attribute directly outside of the object, it worked like a flash for 0.1 seconds and immediately get override by defaultArea's attrs value. In another word, I can't override the default's area hover color out of .mapael() function. Edit, I found the way to trigger area color while hover on plots. However, it doesn't fire area's mouseleave event when mouse quickly hovers around. Thus the color stays at hover color if mosue movement is fast.