Closed iamabhishekp closed 4 years ago
Hi I am wondering to add some conditions in stateSpecificStyles but does not make it,i am trying somthing like this,
$('#map2').usmap({ 'stateSpecificStyles': { if(stateCode == 'AL') 'AL': { fill: 'green' }, if(stateCode == AK) 'AK': { fill: 'red' } },
Is there any other way to do that? can i use for loop or somthing here? please help
Hi I am wondering to add some conditions in stateSpecificStyles but does not make it,i am trying somthing like this,
$('#map2').usmap({ 'stateSpecificStyles': { if(stateCode == 'AL') 'AL': { fill: 'green' }, if(stateCode == AK) 'AK': { fill: 'red' } },
Is there any other way to do that? can i use for loop or somthing here? please help