I am working on an Interactive US map using this plugin, On initial load one state(FL) will fill with Hover color by default which works great. I need to remove those default (fill) color from the state(FL) when mouser hover in any state. Here is my code
$(document).ready(function () {
$("#map-container").usmap({
stateStyles: {
fill: "#8B1109",
stroke: "#fff",
"stroke-width": 1,
"stroke-linejoin": "round",
scale: [1, 1],
},
stateHoverStyles: {
fill: "#58adaf",
stroke: "#fff",
scale: [1.1, 1.1],
},
stateHoverAnimation: false,
stateSpecificStyles: {
FL: {
fill: "#58adaf",
},
},
mouseover: function (event, data) {
console.log(data);
},
});
});
My requirement is hovering on any state Default state(Fl) should back to normal color.
Current status:
Requirement :When mouse over to California, Florida should fill with default color
Thanks in advance