You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear colleagues,
I need to load input data with Ajax dynamically and JS handles string arrays double-quoted so the map can't select regions.
Tried this, but the output is not correct:
//Note: 'data' is a model loaded via Ajax as: {"MX": "15.65", ..., }varkeys=Object.keys(data).map(function(key){return"'"+key+"'";// Want: ['MX'], but get [" 'MX' "]});
...
selectedRegions: keys.toString(),
Only setting static values works for me.
How can be done?
The text was updated successfully, but these errors were encountered:
fraballi
changed the title
'selectedRegions' options does not work with double-quoted input: ["A", "B"]
'selectedRegions' options does not work with double-quoted input: ["MX"]
Aug 20, 2020
fraballi
changed the title
'selectedRegions' options does not work with double-quoted input: ["MX"]
'selectedRegions' option does not work with double-quoted input: ["MX"]
Aug 20, 2020
Dear colleagues,
I need to load input data with Ajax dynamically and JS handles string arrays double-quoted so the map can't select regions.
Tried this, but the output is not correct:
Only setting static values works for me.
How can be done?
The text was updated successfully, but these errors were encountered: