$(document).ready(function(e) { document._loadMap(); });
document._loadMap = function() { var map;
AmCharts.ready(function() { map = new AmCharts.AmMap(); map.pathToImages = "http://al-manshour.org/images/"; //map.panEventsEnabled = true; // this line enables pinch-zooming and dragging on touch devices
var dataProvider = { mapVar: AmCharts.maps.worldLow, zoomLevel: 4, zoomLongitude: 26.327387, zoomLatitude: 27.900447 };
map.areasSetting
$(document).ready(function(e) { document._loadMap(); });
document._loadMap = function() { var map;
AmCharts.ready(function() { map = new AmCharts.AmMap(); map.pathToImages = "http://al-manshour.org/images/"; //map.panEventsEnabled = true; // this line enables pinch-zooming and dragging on touch devices
var dataProvider = { mapVar: AmCharts.maps.worldLow, zoomLevel: 4, zoomLongitude: 26.327387, zoomLatitude: 27.900447 };
map.areasSettings = { unlistedAreasColor: "#eeeeee", rollOverOutlineColor: "#ffffff", rollOverColor: "#CC0000", autoZoom: false, balloonText: "[[title]]"
};
dataProvider.areas = [ { title: "لبنان", label: "لبنان", id: "LB", color: "#3366CC",}, { title: "Egypt", label: "مصر", id: "EG", color: "#3366CC", customData: "1973", description: "Egypt is very cool, the Pharoes lived there....", groupId: "Egypt"}, { title: "Saudi Arabia", label: "Saudi Arabia", id: "SA", color: "#3366CC", customData: "1973", groupId: "Saudi Arabia"}, { title: "Syria", label: "Syria", id: "SY", color: "#3366CC", customData: "1995", groupId: "Syria"}, { title: "Jordan", label: "Jordan", id: "JO", color: "#3366CC", customData: "1995", groupId: "Jordan"}, { title: "Occupied Palestinian Territories", label: "Occupied Palestine Territories", id: "IL", color: "#3366CC", customData: "1973", groupId: "Palestine"},
{ title: "State of Palestine", label: "State of Palestine", id: "PS", color: "#3366CC", customData: "1973", groupId: "Palestine"}, { title: "Sudan", label: "Sudan", id: "SD", color: "#3366CC", customData: "1957", groupId: "Sudan"}, { title: "Algeria", label: "Algeria", id: "DZ", color: "#3366CC", customData: "1957", groupId: "Algeria"}, { title: "Morocco", label: "Morocco", id: "MA", color: "#3366CC", customData: "1986", groupId: "Morocco"}, { title: "Tunisia", label: "Tunisia", id: "TN", color: "#3366CC", customData: "1981", groupId: "Tunisia"}, { title: "Qatar", label: "Qatar", id: "QA", color: "#3366CC", customData: "1957", groupId: "Qatar"}, { title: "Bahrain", label: "Bahrain", id: "BH", color: "#3366CC", customData: "1957", groupId: "Bahrain"}, { title: "Yemen", label: "Yemen", id: "YE", color: "#3366CC", customData: "1957", groupId: "Yemen"}, { title: "United Arab Emirates", label: "United Arab Emirates", id: "AE", color: "#3366CC", customData: "1957", groupId: "UAE"}, { title: "Iraq", label: "Iraq", id: "IQ", color: "#3366CC", customData: "1986", groupId: "Iraq"},
{ title: "Somalia", label: "Somalia", id: "SO", color: "#3366CC", customData: "2004", groupId: "Somalia"}, { title: "Libya", label: "Libya", id: "LY", color: "#3366CC", customData: "2004", groupId: "Libya"}, { title: "Oman", label: "Oman", id: "OM", color: "#3366CC", customData: "2004", groupId: "Oman"}, { title: "Kuwait", label: "Kuwait", id: "KW", color: "#3366CC", customData: "2004", groupId: "Kuwait"}, { title: "Mauritania", label: "Mauritania", id: "MR", color: "#3366CC", customData: "2004", groupId: "Mauritania"}, { title: "Djibouti", label: "Djibouti", id: "DJ", color: "#3366CC", customData: "2004", groupId: "Djibouti"}, { title: "Comoros", label: "Comoros", id: "KM", color: "#3366CC", description: "Comoros is very cool, you can notice that from the name", groupId: "Comoros"},
];
map.dataProvider = dataProvider;
var legend = { width: 400, backgroundAlpha: 0.5, backgroundColor: "#FFFFFF", borderColor: "#666666", borderAlpha: 1, bottom: 15, left: 15, horizontalGap: 10, data: [ { title: "no voting rights", color: "#3366CC"}, { title: "no .....", color: "#FFCC33"}, { title: "no .....", color: "#66CC99"} ] };
map.addLegend(legend); map.write("mapdiv");
}); }