jquery - jqvmap - onRegionClick changes color of country -


so far plugin works quite nice...got no probs @ all. noticed "onregionclick" changes color of choosen country , prevent that. ^^

config:

jquery('#vmap').vectormap({      ...     backgroundcolor: '#ffffff',     ...     color: '#f3f3f3',     hovercolor: '#fcd452',     selectedcolor: '#397acb',     multiselectregion: true,     ... 

after loading map every selected country got nice #397acb blue after clicking on it, changes #f3f3f3...how prevent that?

thx!

ok, got kind of workaround.

onregionclick: function (event, code, region) {     jquery('#jqvmap1_'+code).css('fill', '#397acb'); } 

this way prevent him altering color, although still know why changes color on click. ^^ maybe 1 day.....


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -