var map; // svg path for target icon //var targetSVG = "M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z"; var targetSVG = "M16 0c-8.837 0-16 7.163-16 16s7.163 16 16 16 16-7.163 16-16-7.163-16-16-16zM16 20c-2.209 0-4-1.791-4-4s1.791-4 4-4c2.209 0 4 1.791 4 4s-1.791 4-4 4z"; // svg path for plane icon var planeSVG = "M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z"; AmCharts.ready(function() { map = new AmCharts.AmMap(); var dataProvider = { mapVar: AmCharts.maps.worldLow }; map.areasSettings = { unlistedAreasColor: "#85C1E9", outlineThickness:0.2 }; map.imagesSettings = { color: "#932933", rollOverScale: 2, selectedScale: 0.4, rollOverColor: "#932933", selectedColor: "#000000" }; map.linesSettings = { color: "#CC0000", alpha: 0.3 }; // LONDON var peoria = { id: "peoria", color: "#000000", svgPath: targetSVG, title: "Peoria, IL", latitude: 40.692529, longitude: -89.589178, scale: 1.5, zoomLevel: 1.25, zoomLongitude: 10, zoomLatitude: 30, lines: [ ], images: [{ label: "", left: 50, top: 45, color: "#CC0000", labelColor: "#CC0000", labelRollOverColor: "#CC0000", labelFontSize: 30}, ] }; // cities var cities = [ peoria, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 34.052046, longitude: -118.229123}, { svgPath: targetSVG, scale: 0.5, title: "", latitude: 33.921710, longitude: -80.339506}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 36.097833, longitude: -80.221495}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 41.524818, longitude: -88.080477}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 39.839510, longitude: -88.950016}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 40.667108, longitude: -89.575646}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 41.760427, longitude: -88.319081}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 40.817013, longitude: -89.568801}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 43.037734, longitude: -87.915254}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 34.350948, longitude: 108.939707}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 25.685243, longitude: -100.305853}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 47.728627, longitude: 10.313595}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 45.461192, longitude: 9.174129}, { svgPath: targetSVG, title: "", scale: 0.5, latitude: 42.276032, longitude: -88.194113} ]; dataProvider.linkToObject = peoria; dataProvider.images = cities; map.dataProvider = dataProvider; map.backgroundZoomsToTop = true; map.linesAboveImages = true; map.write("mapdiv"); });