Closed ranska closed 8 years ago
Usecase: Given i make a map scoped on Africa And i do some click event like """
done: function(datamap) { datamap.svg.selectAll('.datamaps-subunit').on('click', function(geography) { // change color using geography.id }); }
""" Then i give the following message error """ Uncaught SyntaxError: An invalid or illegal string was specified. """
the id is the only negative number that i found
geometry: Object id: "-99" properties: Object
is it normal ?
All regions that are disputed in every map i encountered (this, jQvmap etc) give a negative value to them. Not sure why, but you can modify the source yourself if you need to have it..
Usecase: Given i make a map scoped on Africa And i do some click event like """
""" Then i give the following message error """ Uncaught SyntaxError: An invalid or illegal string was specified. """
the id is the only negative number that i found
is it normal ?