happycoding
happycoding

Reputation: 458

JQVMAP Reset all settings

i am using the map to select countries via a button. once clicked the countries are highlighted.

$(".mp-cyprus-A").click(function(){

    $('#vmap').vectorMap('select', 'us');
    $('#vmap').vectorMap('select', 'gb');
});

There are ways to set the countries colors, but not using the color range only same color for everyone. Do doesnt work for me.

I have other buttons which select other countries and i require restting the map back to the original state before new countries are highlighted.

Or is the only option to destroy and rebuild the map?

Upvotes: 0

Views: 230

Answers (1)

happycoding
happycoding

Reputation: 458

Use JvectorMap for larger libary.

Upvotes: 0

Related Questions