emojiMatrix = {
return countryCodeMatrix_Down.map(r => r.map(c => {
if(c == waterCode){
if(waterEmoji=='custom'){
return customWater
}else{
return waterEmoji
}
}else if(c == missingCode){
return offmapEmoji
}else if(c == 10){
if(antarcticaEmoji == "Land"){
if (landEmoji== "Country Flag"){
return countryEmojiLookup.get(c);
}else if(landEmoji=='custom'){
return customLand;
}else{
return landEmoji
}
}else if(antarcticaEmoji == "Water"){
if(waterEmoji=='custom'){
return customWater
}else{
return waterEmoji
}
}else{
return customAntarctica;
}
}else{
if (landEmoji== "Country Flag"){
var out = countryEmojiLookup.get(c);
return (out==undefined) ? (landFallbackEmoji) : out;
}else if(landEmoji=='custom'){
return customLand;
}else{
return landEmoji
}
}
}))
}