Skip to content

Deselect event update. #85

Merged
merged 2 commits into from Oct 17, 2015

2 participants

@sonnydg
Collaborator
sonnydg commented Aug 5, 2013

Deselect update event, all path deselect.

$('#vmap').vectorMap('deselect', 'us'); // "us" are path

use: $('#vmap').vectorMap('deselect');

and deselect all path

@sonnydg sonnydg Deselect event update.
Deselect update event, all path deselect.

$('#vmap').vectorMap('deselect', 'us'); // "us" are path

use: $('#vmap').vectorMap('deselect');
 
and deselect all path
6d6aeed
@sonnydg
Collaborator

Sorry... this is a bug, then select another country.

edit code for:
for (var key in this.countries) {
this.selectedRegions.splice(this.selectedRegions.indexOf(key), 1);
this.countries[key].currentFillColor = this.color;
this.countries[key].setFill(this.color);
}

@sonnydg sonnydg Fix Deselect Update
fix is a bug, then select another country.
75bd303
@manifestinteractive manifestinteractive merged commit 97c15b4 into manifestinteractive:stable Oct 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.