如何设置JVector Map的背景色? [英] How to set background color for JVector Map?

查看:106
本文介绍了如何设置JVector Map的背景色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码来初始化JVector映射:

I have the following code to initialize JVector map:

      map = new jvm.WorldMap({
          map: 'us_aea_en',
          // backgroundColor:  #FFFFFF, //Only this line does not work.
          container: $('#map'),
          series: {
            regions: [{
              attribute: 'fill'
            }]
          }
        });

上面的行:backgroundColor: #FFFFFF不执行.我阅读了API文档,它似乎具有正确的语法.该代码除该行外均完美.如何设置背景?还有其他设置背景颜色的方法吗?

The above line: backgroundColor: #FFFFFF does not execute. I read the API documentation, it seems to have correct syntax. The code works perfect except for that line. How to set the background? Are there any other ways to set the background color?

推荐答案

感谢@Denis Malinovsky,我终于明白了 答案是: backgroundColor: "#FFFFFF"

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

这篇关于如何设置JVector Map的背景色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆