简体   繁体   中英

jVectormap - change default country color

i am trying to change the default light-grey default color jVectormap uses for displaying any of the countries on the world map. Additionally, it would be great to know if the country border color can be changed as well?

I am running v2.0.3 and am using the standard world-map.

Reference: World Map Sample

Seems like there are quite a few changes in syntax from V1.xx to v2.xx, at long last the following line of code managed to change the default country and hover color of whatever regional map the client is using.

regionStyle: { initial: { fill: '#d2d6de' }, hover: { fill: '#A0D1DC' } },

Hope that helps someone who has the same problems as me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM