ronnyb
Posts: 1
Joined: Mon Feb 14, 2022 10:55 am

White image exporting map

Hi,

I am trying to export a map, but I am getting a white image instead.

I am using latest npm and have enabled map support in setup process.

This is the request that I am sending:

b64=true,
constr=Map,
infile={
"credits":{ "enabled":false }, "title":{
"text":""
},
"legend":{
"enabled":false
},
"colorAxis":{
"dataClasses":[
{
"from":1,
"to":10,
"color":"#C4EABF"
},
{
"from":10,
"to":100,
"color":"#8AD580"
},
{
"from":100,
"to":1000,
"color":"#50C042"
},
{
"from":1000,
"color":"#16AB03"
}
]
},
"chart":{
"map":"world",
"height":"50%"
},
"plotOptions":{
"map":{
"allAreas":true,
"joinBy":"iso-a2",
"keys":[
"iso-a2",
"value",
"color"
]
}
},
"series":[
{
"type":"map",
"data": [["AL",2],["AR",2],["AT",6],["AU",3],["AW",1],["BA",2],["BE",17],["BG",6],["BM",1],["BQ",4],["BS",1],["BY",1],["CA",6],["CH",3],["CL",3],["CN",8],["CO",5],["CW",3],["CY",6],["CZ",6],["DE",7],["DK",6],["DO",2],["EE",6],["ES",7],["FI",6],["FR",7],["GB",7],["GR",6],["HK",8],["HR",7],["HT",2],["HU",6],["IE",6],["IL",5],["IS",2],["IT",7],["JP",2],["KH",2],["KR",3],["KY",1],["KZ",2],["LA",2],["LI",1],["LT",6],["LU",17],["LV",6],["MC",1],["MD",1],["ME",2],["MK",2],["MT",6],["MX",3],["NL",17],["NO",2],["NZ",2],["PE",4],["PH",3],["PL",6],["PT",6],["QA",1],["RO",6],["RS",2],["RU",5],["SE",6],["SG",4],["SI",6],["SK",6],["SX",3],["TR",3],["TW",5],["UA",3],["US",10],["VN",2],["ZA",3]]
}
]
},
scale=false,
type=image/png,
width=false

I also added in the build.js file:

const cdnMapCollection = ["mapdata/custom/world.js"];

Looks like I am missing something. Let me know if you would require more information.

Any help is very appreciated!

Thanks!
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: White image exporting map

Hello ronnyb,

Welcome to our forum and thanks for contacting us with your question!

Did you specify CDN url correctly during configuration questions? Are you getting any errors?

Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Maps”