How to set background color for JVector Map?

ぃ、小莉子 提交于 2019-12-04 06:35:06

Thanks to @Denis Malinovsky, I finally figured out that The answer is: backgroundColor: "#FFFFFF"

GaryLeoNool

You can also set backgroundColor to be empty, e.g. "", and then specify the background color in css by specifying it in the .jvectormap-container class:

Javascript:

var mapObject = $(map).vectorMap({
    map: 'us_aea',
    backgroundColor: ""
});

Css:

.jvectormap-container {
    background-color: navy;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!