diff --git a/examples.js b/examples.js
index c948d769f..fcb395b53 100644
--- a/examples.js
+++ b/examples.js
@@ -12,9 +12,6 @@ $(function(){
$(".maparea2").mapael({
map : {
name : "france_departments"
- , zoom: {
- enabled: true
- }
},
areas: {
"department-56" : {
@@ -44,7 +41,7 @@ $(function(){
longitude: -1.6808333333333,
tooltip: {content : "City : Rennes"},
text : "Rennes",
- href : "#"
+ attrs : {href : "#"}
}
}
});
@@ -666,6 +663,9 @@ $(function(){
}
, marginBottom: 20
, marginLeft : 30
+ , hideElemsOnClick : {
+ opacity : 0
+ }
, title: "Population of France by city"
, slices : [
{
@@ -7850,1344 +7850,1728 @@ $(function(){
},
"ZA": {
"value": "50586757",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "South Africa<\/span>
Population : 50586757"
}
},
"AL": {
"value": "3215988",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Albania<\/span>
Population : 3215988"
}
},
"DZ": {
"value": "35980193",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Algeria<\/span>
Population : 35980193"
}
},
"DE": {
"value": "81726000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Germany<\/span>
Population : 81726000"
}
},
"AD": {
"value": "86165",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Andorra<\/span>
Population : 86165"
}
},
"AO": {
"value": "19618432",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Angola<\/span>
Population : 19618432"
}
},
"AG": {
"value": "89612",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Antigua And Barbuda<\/span>
Population : 89612"
}
},
"SA": {
"value": "28082541",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Saudi Arabia<\/span>
Population : 28082541"
}
},
"AR": {
"value": "40764561",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Argentina<\/span>
Population : 40764561"
}
},
"AM": {
"value": "3100236",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Armenia<\/span>
Population : 3100236"
}
},
"AU": {
"value": "22620600",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Australia<\/span>
Population : 22620600"
}
},
"AT": {
"value": "8419000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Austria<\/span>
Population : 8419000"
}
},
"AZ": {
"value": "9168000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Azerbaijan<\/span>
Population : 9168000"
}
},
"BS": {
"value": "347176",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Bahamas<\/span>
Population : 347176"
}
},
"BH": {
"value": "1323535",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Bahrain<\/span>
Population : 1323535"
}
},
"BD": {
"value": "150493658",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Bangladesh<\/span>
Population : 150493658"
}
},
"BB": {
"value": "273925",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Barbados<\/span>
Population : 273925"
}
},
"BE": {
"value": "11008000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Belgium<\/span>
Population : 11008000"
}
},
"BZ": {
"value": "356600",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Belize<\/span>
Population : 356600"
}
},
"BJ": {
"value": "9099922",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Benin<\/span>
Population : 9099922"
}
},
"BT": {
"value": "738267",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Bhutan<\/span>
Population : 738267"
}
},
"BY": {
"value": "9473000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Belarus<\/span>
Population : 9473000"
}
},
"MM": {
"value": "48336763",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Myanmar<\/span>
Population : 48336763"
}
},
"BO": {
"value": "10088108",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Bolivia, Plurinational State Of<\/span>
Population : 10088108"
}
},
"BA": {
"value": "3752228",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Bosnia And Herzegovina<\/span>
Population : 3752228"
}
},
"BW": {
"value": "2030738",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Botswana<\/span>
Population : 2030738"
}
},
"BR": {
"value": "196655014",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Brazil<\/span>
Population : 196655014"
}
},
"BN": {
"value": "405938",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Brunei Darussalam<\/span>
Population : 405938"
}
},
"BG": {
"value": "7476000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Bulgaria<\/span>
Population : 7476000"
}
},
"BF": {
"value": "16967845",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Burkina Faso<\/span>
Population : 16967845"
}
},
"BI": {
"value": "8575172",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Burundi<\/span>
Population : 8575172"
}
},
"KH": {
"value": "14305183",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Cambodia<\/span>
Population : 14305183"
}
},
"CM": {
"value": "20030362",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Cameroon<\/span>
Population : 20030362"
}
},
"CA": {
"value": "34482779",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Canada<\/span>
Population : 34482779"
}
},
"CV": {
"value": "500585",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Cape Verde<\/span>
Population : 500585"
}
},
"CF": {
"value": "4486837",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Central African Republic<\/span>
Population : 4486837"
}
},
"CL": {
"value": "17269525",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Chile<\/span>
Population : 17269525"
}
},
"CN": {
"value": "1344130000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "China<\/span>
Population : 1344130000"
}
},
"CY": {
"value": "1116564",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Cyprus<\/span>
Population : 1116564"
}
},
"CO": {
"value": "46927125",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Colombia<\/span>
Population : 46927125"
}
},
"KM": {
"value": "753943",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Comoros<\/span>
Population : 753943"
}
},
"CG": {
"value": "4139748",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Congo<\/span>
Population : 4139748"
}
},
"CD": {
"value": "67757577",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Congo, The Democratic Republic Of The<\/span>
Population : 67757577"
}
},
"KP": {
"value": "24451285",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Korea, Democratic People's Republic Of<\/span>
Population : 24451285"
}
},
"KR": {
"value": "49779000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Korea, Republic Of<\/span>
Population : 49779000"
}
},
"CR": {
"value": "4726575",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Costa Rica<\/span>
Population : 4726575"
}
},
"CI": {
"value": "20152894",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "C\u00d4te D'ivoire<\/span>
Population : 20152894"
}
},
"HR": {
"value": "4407000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Croatia<\/span>
Population : 4407000"
}
},
"CU": {
"value": "11253665",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Cuba<\/span>
Population : 11253665"
}
},
"DK": {
"value": "5574000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Denmark<\/span>
Population : 5574000"
}
},
"DJ": {
"value": "905564",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Djibouti<\/span>
Population : 905564"
}
},
"DM": {
"value": "67675",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Dominica<\/span>
Population : 67675"
}
},
"EG": {
"value": "82536770",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Egypt<\/span>
Population : 82536770"
}
},
"AE": {
"value": "7890924",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "United Arab Emirates<\/span>
Population : 7890924"
}
},
"EC": {
"value": "14666055",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Ecuador<\/span>
Population : 14666055"
}
},
"ER": {
"value": "5415280",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Eritrea<\/span>
Population : 5415280"
}
},
"ES": {
"value": "46235000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Spain<\/span>
Population : 46235000"
}
},
"EE": {
"value": "1340000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Estonia<\/span>
Population : 1340000"
}
},
"US": {
"value": "311591917",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "United States<\/span>
Population : 311591917"
}
},
"ET": {
"value": "84734262",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Ethiopia<\/span>
Population : 84734262"
}
},
"FJ": {
"value": "868406",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Fiji<\/span>
Population : 868406"
}
},
"FI": {
"value": "5387000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Finland<\/span>
Population : 5387000"
}
},
"FR": {
"value": "65436552",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "France<\/span>
Population : 65436552"
}
},
"GA": {
"value": "1534262",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Gabon<\/span>
Population : 1534262"
}
},
"GM": {
"value": "1776103",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Gambia<\/span>
Population : 1776103"
}
},
"GE": {
"value": "4486000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Georgia<\/span>
Population : 4486000"
}
},
"GH": {
"value": "24965816",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Ghana<\/span>
Population : 24965816"
}
},
"GR": {
"value": "11304000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Greece<\/span>
Population : 11304000"
}
},
"GD": {
"value": "104890",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Grenada<\/span>
Population : 104890"
}
},
"GT": {
"value": "14757316",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Guatemala<\/span>
Population : 14757316"
}
},
"GN": {
"value": "10221808",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Guinea<\/span>
Population : 10221808"
}
},
"GQ": {
"value": "720213",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Equatorial Guinea<\/span>
Population : 720213"
}
},
"GW": {
"value": "1547061",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Guinea-bissau<\/span>
Population : 1547061"
}
},
"GY": {
"value": "756040",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Guyana<\/span>
Population : 756040"
}
},
"HT": {
"value": "10123787",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Haiti<\/span>
Population : 10123787"
}
},
"HN": {
"value": "7754687",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Honduras<\/span>
Population : 7754687"
}
},
"HU": {
"value": "9971000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Hungary<\/span>
Population : 9971000"
}
},
"JM": {
"value": "2709300",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Jamaica<\/span>
Population : 2709300"
}
},
"JP": {
"value": "127817277",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Japan<\/span>
Population : 127817277"
}
},
"MH": {
"value": "54816",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Marshall Islands<\/span>
Population : 54816"
}
},
"PW": {
"value": "20609",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Palau<\/span>
Population : 20609"
}
},
"SB": {
"value": "552267",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Solomon Islands<\/span>
Population : 552267"
}
},
"IN": {
"value": "1241491960",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "India<\/span>
Population : 1241491960"
}
},
"ID": {
"value": "242325638",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Indonesia<\/span>
Population : 242325638"
}
},
"JO": {
"value": "6181000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Jordan<\/span>
Population : 6181000"
}
},
"IR": {
"value": "74798599",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Iran, Islamic Republic Of<\/span>
Population : 74798599"
}
},
"IQ": {
"value": "32961959",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Iraq<\/span>
Population : 32961959"
}
},
"IE": {
"value": "4487000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Ireland<\/span>
Population : 4487000"
}
},
"IS": {
"value": "319000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Iceland<\/span>
Population : 319000"
}
},
"IL": {
"value": "7765700",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Israel<\/span>
Population : 7765700"
}
},
"IT": {
"value": "60770000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Italy<\/span>
Population : 60770000"
}
},
"KZ": {
"value": "16558459",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Kazakhstan<\/span>
Population : 16558459"
}
},
"KE": {
"value": "41609728",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Kenya<\/span>
Population : 41609728"
}
},
"KG": {
"value": "5507000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Kyrgyzstan<\/span>
Population : 5507000"
}
},
"KI": {
"value": "101093",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Kiribati<\/span>
Population : 101093"
}
},
"KW": {
"value": "2818042",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Kuwait<\/span>
Population : 2818042"
}
},
"LA": {
"value": "6288037",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Lao People's Democratic Republic<\/span>
Population : 6288037"
}
},
"LS": {
"value": "2193843",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Lesotho<\/span>
Population : 2193843"
}
},
"LV": {
"value": "2220000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Latvia<\/span>
Population : 2220000"
}
},
"LB": {
"value": "4259405",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Lebanon<\/span>
Population : 4259405"
}
},
"LR": {
"value": "4128572",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Liberia<\/span>
Population : 4128572"
}
},
"LY": {
"value": "6422772",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Libya<\/span>
Population : 6422772"
}
},
"LI": {
"value": "36304",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Liechtenstein<\/span>
Population : 36304"
}
},
"LT": {
"value": "3203000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Lithuania<\/span>
Population : 3203000"
}
},
"LU": {
"value": "517000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Luxembourg<\/span>
Population : 517000"
}
},
"MK": {
"value": "2063893",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Macedonia, The Former Yugoslav Republic Of<\/span>
Population : 2063893"
}
},
"MG": {
"value": "21315135",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Madagascar<\/span>
Population : 21315135"
}
},
"MY": {
"value": "28859154",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Malaysia<\/span>
Population : 28859154"
}
},
"MW": {
"value": "15380888",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Malawi<\/span>
Population : 15380888"
}
},
"MV": {
"value": "320081",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Maldives<\/span>
Population : 320081"
}
},
"ML": {
"value": "15839538",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Mali<\/span>
Population : 15839538"
}
},
"MT": {
"value": "419000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Malta<\/span>
Population : 419000"
}
},
"MA": {
"value": "32272974",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Morocco<\/span>
Population : 32272974"
}
},
"MU": {
"value": "1286051",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Mauritius<\/span>
Population : 1286051"
}
},
"MR": {
"value": "3541540",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Mauritania<\/span>
Population : 3541540"
}
},
"MX": {
"value": "114793341",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Mexico<\/span>
Population : 114793341"
}
},
"FM": {
"value": "111542",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Micronesia, Federated States Of<\/span>
Population : 111542"
}
},
"MD": {
"value": "3559000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Moldova, Republic Of<\/span>
Population : 3559000"
}
},
"MC": {
"value": "35427",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Monaco<\/span>
Population : 35427"
}
},
"MN": {
"value": "2800114",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Mongolia<\/span>
Population : 2800114"
}
},
"ME": {
"value": "632261",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Montenegro<\/span>
Population : 632261"
}
},
"MZ": {
"value": "23929708",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Mozambique<\/span>
Population : 23929708"
}
},
"NA": {
"value": "2324004",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Namibia<\/span>
Population : 2324004"
}
},
"NP": {
"value": "30485798",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Nepal<\/span>
Population : 30485798"
}
},
"NI": {
"value": "5869859",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Nicaragua<\/span>
Population : 5869859"
}
},
"NE": {
"value": "16068994",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Niger<\/span>
Population : 16068994"
}
},
"NG": {
"value": "162470737",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Nigeria<\/span>
Population : 162470737"
}
},
"NO": {
"value": "4952000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Norway<\/span>
Population : 4952000"
}
},
"NZ": {
"value": "4405200",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "New Zealand<\/span>
Population : 4405200"
}
},
"OM": {
"value": "2846145",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Oman<\/span>
Population : 2846145"
}
},
"UG": {
"value": "34509205",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Uganda<\/span>
Population : 34509205"
}
},
"UZ": {
"value": "29341200",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Uzbekistan<\/span>
Population : 29341200"
}
},
"PK": {
"value": "176745364",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Pakistan<\/span>
Population : 176745364"
}
},
"PS": {
"value": "4019433",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Palestine, State Of<\/span>
Population : 4019433"
}
},
"PA": {
"value": "3571185",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Panama<\/span>
Population : 3571185"
}
},
"PG": {
"value": "7013829",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Papua New Guinea<\/span>
Population : 7013829"
}
},
"PY": {
"value": "6568290",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Paraguay<\/span>
Population : 6568290"
}
},
"NL": {
"value": "16696000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Netherlands<\/span>
Population : 16696000"
}
},
"PE": {
"value": "29399817",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Peru<\/span>
Population : 29399817"
}
},
"PH": {
"value": "94852030",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Philippines<\/span>
Population : 94852030"
}
},
"PL": {
"value": "38216000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Poland<\/span>
Population : 38216000"
}
},
"PT": {
"value": "10637000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Portugal<\/span>
Population : 10637000"
}
},
"QA": {
"value": "1870041",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Qatar<\/span>
Population : 1870041"
}
},
"DO": {
"value": "10056181",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Dominican Republic<\/span>
Population : 10056181"
}
},
"RO": {
"value": "21390000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Romania<\/span>
Population : 21390000"
}
},
"GB": {
"value": "62641000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "United Kingdom<\/span>
Population : 62641000"
}
},
"RU": {
"value": "141930000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Russian Federation<\/span>
Population : 141930000"
}
},
"RW": {
"value": "10942950",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Rwanda<\/span>
Population : 10942950"
}
},
"KN": {
"value": "53051",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Saint Kitts And Nevis<\/span>
Population : 53051"
}
},
"SM": {
"value": "31735",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "San Marino<\/span>
Population : 31735"
}
},
"VC": {
"value": "109365",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Saint Vincent And The Grenadines<\/span>
Population : 109365"
}
},
"LC": {
"value": "176000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Saint Lucia<\/span>
Population : 176000"
}
},
"SV": {
"value": "6227491",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "El Salvador<\/span>
Population : 6227491"
}
},
"WS": {
"value": "183874",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Samoa<\/span>
Population : 183874"
}
},
"ST": {
"value": "168526",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Sao Tome And Principe<\/span>
Population : 168526"
}
},
"SN": {
"value": "12767556",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Senegal<\/span>
Population : 12767556"
}
},
"RS": {
"value": "7261000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Serbia<\/span>
Population : 7261000"
}
},
"SC": {
"value": "86000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Seychelles<\/span>
Population : 86000"
}
},
"SL": {
"value": "5997486",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Sierra Leone<\/span>
Population : 5997486"
}
},
"SG": {
"value": "5183700",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Singapore<\/span>
Population : 5183700"
}
},
"SK": {
"value": "5440000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Slovakia<\/span>
Population : 5440000"
}
},
"SI": {
"value": "2052000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Slovenia<\/span>
Population : 2052000"
}
},
"SO": {
"value": "9556873",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Somalia<\/span>
Population : 9556873"
}
},
"SD": {
"value": "34318385",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Sudan<\/span>
Population : 34318385"
}
},
"SS": {
"value": "10314021",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "South Sudan<\/span>
Population : 10314021"
}
},
"LK": {
"value": "20869000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Sri Lanka<\/span>
Population : 20869000"
}
},
"SE": {
"value": "9453000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Sweden<\/span>
Population : 9453000"
}
},
"CH": {
"value": "7907000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Switzerland<\/span>
Population : 7907000"
}
},
"SR": {
"value": "529419",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Suriname<\/span>
Population : 529419"
}
},
"SZ": {
"value": "1067773",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Swaziland<\/span>
Population : 1067773"
}
},
"SY": {
"value": "20820311",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Syrian Arab Republic<\/span>
Population : 20820311"
}
},
"TJ": {
"value": "6976958",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Tajikistan<\/span>
Population : 6976958"
}
},
"TZ": {
"value": "46218486",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Tanzania, United Republic Of<\/span>
Population : 46218486"
}
},
"TD": {
"value": "11525496",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Chad<\/span>
Population : 11525496"
}
},
"CZ": {
"value": "10546000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Czech Republic<\/span>
Population : 10546000"
}
},
"TH": {
"value": "69518555",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Thailand<\/span>
Population : 69518555"
}
},
"TL": {
"value": "1175880",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Timor-leste<\/span>
Population : 1175880"
}
},
"TG": {
"value": "6154813",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Togo<\/span>
Population : 6154813"
}
},
"TO": {
"value": "104509",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Tonga<\/span>
Population : 104509"
}
},
"TT": {
"value": "1346350",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Trinidad And Tobago<\/span>
Population : 1346350"
}
},
"TN": {
"value": "10673800",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Tunisia<\/span>
Population : 10673800"
}
},
"TM": {
"value": "5105301",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Turkmenistan<\/span>
Population : 5105301"
}
},
"TR": {
"value": "73639596",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Turkey<\/span>
Population : 73639596"
}
},
"TV": {
"value": "9847",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Tuvalu<\/span>
Population : 9847"
}
},
"VU": {
"value": "245619",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Vanuatu<\/span>
Population : 245619"
}
},
"VE": {
"value": "29278000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Venezuela, Bolivarian Republic Of<\/span>
Population : 29278000"
}
},
"VN": {
"value": "87840000",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Viet Nam<\/span>
Population : 87840000"
}
},
"UA": {
"value": "45706100",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Ukraine<\/span>
Population : 45706100"
}
},
"UY": {
"value": "3368595",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Uruguay<\/span>
Population : 3368595"
}
},
"YE": {
"value": "24799880",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Yemen<\/span>
Population : 24799880"
}
},
"ZM": {
"value": "13474959",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Zambia<\/span>
Population : 13474959"
}
},
"ZW": {
"value": "12754378",
- "href" : "#",
+ "attrs": {
+ "href": "#"
+ },
"tooltip": {
"content": "Zimbabwe<\/span>
Population : 12754378"
}
diff --git a/js/jquery.mapael.js b/js/jquery.mapael.js
index c943f89b3..c50fd011c 100644
--- a/js/jquery.mapael.js
+++ b/js/jquery.mapael.js
@@ -445,24 +445,28 @@
(function(i, elem, label) {
$(label.node).on('click', function() {
if (!label.hidden) {
- label.animate({'opacity':legendOptions.hideElemsOnClick.opacity}, 300);
- elem.animate({'opacity':legendOptions.hideElemsOnClick.opacity}, 300);
+ label.animate({'opacity':0.5}, 300);
} else {
- label.animate({'opacity':typeof label.originalAttrs.opacity != "undefined" ? label.originalAttrs.opacity : 1}, 300);
- elem.animate({'opacity':typeof elem.originalAttrs.opacity != "undefined" ? elem.originalAttrs.opacity : 1}, 300);
+ label.animate({'opacity':1}, 300);
}
for (var id in elems) {
if ((!legendOptions.slices[i].min || elems[id].value >= legendOptions.slices[i].min)
&& (!legendOptions.slices[i].max || elems[id].value < legendOptions.slices[i].max)
) {
- if (!label.hidden) {
- elems[id].mapElem.animate({'opacity':legendOptions.hideElemsOnClick.opacity}, 300);
- elems[id].textElem && elems[id].textElem.animate({'opacity':legendOptions.hideElemsOnClick.opacity}, 300);
- } else {
- elems[id].mapElem.animate({'opacity':typeof elems[id].mapElem.originalAttrs.opacity != "undefined" ? elems[id].mapElem.originalAttrs.opacity : 1}, 300);
- elems[id].textElem && elems[id].textElem.animate({'opacity':typeof elems[id].textElem.originalAttrs.opacity != "undefined" ? elems[id].textElem.originalAttrs.opacity : 1}, 300);
- }
+ (function(id) {
+ if (!label.hidden) {
+ elems[id].mapElem.animate({'opacity':legendOptions.hideElemsOnClick.opacity}, 300, 'linear', function() {(legendOptions.hideElemsOnClick.opacity == 0) && elems[id].mapElem.hide();});
+ elems[id].textElem && elems[id].textElem.animate({'opacity':legendOptions.hideElemsOnClick.opacity}, 300, 'linear', function() {(legendOptions.hideElemsOnClick.opacity == 0) && elems[id].textElem.hide();});
+ } else {
+ if (legendOptions.hideElemsOnClick.opacity == 0) {
+ elems[id].mapElem.show();
+ elems[id].textElem && elems[id].textElem.show();
+ }
+ elems[id].mapElem.animate({'opacity':typeof elems[id].mapElem.originalAttrs.opacity != "undefined" ? elems[id].mapElem.originalAttrs.opacity : 1}, 300);
+ elems[id].textElem && elems[id].textElem.animate({'opacity':typeof elems[id].textElem.originalAttrs.opacity != "undefined" ? elems[id].textElem.originalAttrs.opacity : 1}, 300);
+ }
+ })(id);
}
}
label.hidden = !label.hidden;