Hi banditarocks!
It depends which kind of map. In most cases, we need to create a function to detect country and assign a required color. World map DEMO:
http://jsfiddle.net/Bastss/dgL012hu/, Europe map DEMO:
https://jsfiddle.net/Bastss/L0xm9azq/. Check also categorized map DEMO:
http://jsfiddle.net/gh/get/library/pure ... egory-map/.
Best regards!