I am using this SVG India map in my project, on mouse hover colors are changing, but I need if user click on any State then it should redirect to other page and background color should active as Black “#000”.
Notice that it is setting a 'downColor', now go to map-config.js and you will find the downcolor being set on all the IDs.
That is where you will make your changes to the color you want. It looks like you need to edit all 36 of them.
'map_1':{
'hover': 'ANDHRA PRADESH', //region hover content
'url':'#', //Goto URL
'target':'same_window', //open link in new window:new_window, open in current window:same_window, or none for nothing.
'upColor':'#EBECED', //region color when page loads
'overColor':'#FFEE88', //region color when mouse hover
'downColor':'#993366',//region color when mouse clicking
'enable':true,//true/false to enable/disable this region
},
Thanks for your input, but I need if user click on any state background color black should active if user click any other state then parent color should be deactive.
I am using SVG Map for India, it is working fine, but the issue is parent ID is not deactivating if I am clicking any other state, I need parent Id should deactive with “fill color - Grey” and child color should be active in Green.