Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set background color for JVector Map?

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'
            }]
          }
        });

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?

like image 299
Buras Avatar asked May 02 '13 05:05

Buras


1 Answers

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

like image 166
Buras Avatar answered Oct 21 '22 19:10

Buras