// This is your shape
var shape={"title":"Italy","notes":"Rough Outline.\r\nSlithly edited so it does not overlap with neighbor countries.","author":"","tags":["italy"],"points":[[43.755225,7.558594],[43.969098,7.624512],[44.150681,7.602539],[44.205835,7.108154],[44.425934,6.877441],[44.762337,6.921387],[45.073521,6.61377],[45.104546,6.954346],[45.367584,7.075195],[45.790509,6.789551],[45.874712,7.042236],[45.92823,7.492676],[45.920587,7.833252],[46.225453,8.140869],[46.483265,8.415527],[45.790509,9.047241],[46.042736,9.030762],[46.490829,9.294434],[46.490829,9.448242],[46.297611,9.519653],[46.354511,9.970093],[46.221652,10.05249],[46.252048,10.17334],[46.600393,10.090942],[46.562637,10.469971],[46.852678,10.469971],[46.830134,10.986328],[47.032695,12.106934],[46.912751,12.227783],[46.672056,12.458496],[46.573967,13.73291],[46.316584,13.491211],[46.187437,13.601074],[46.027482,13.502197],[45.782848,13.688965],[45.444717,12.480469],[45.058001,12.458496],[44.762337,12.546387],[44.684277,12.304688],[44.095476,12.540894],[43.889975,12.914429],[43.612217,13.513184],[42.67032,14.024048],[42.45994,14.216309],[42.248852,14.507446],[41.885921,15.380859],[41.967659,15.952148],[41.787697,16.325684],[41.52503,15.974121],[40.979898,17.600098],[40.279526,18.500977],[39.724089,18.413086],[40.027614,17.907715],[40.279526,17.62207],[40.446947,16.918945],[39.774769,16.54541],[39.35129,17.29248],[38.85682,17.182617],[38.719805,16.633301],[38.393339,16.633301],[37.909534,16.237793],[37.909534,15.732422],[38.065392,15.622559],[37.71859,15.292969],[37.439974,15.292969],[36.967449,15.446777],[36.597889,15.249023],[36.738884,14.47998],[37.26531,13.293457],[37.596824,12.32666],[38.134557,12.392578],[38.341656,12.788086],[38.099983,12.963867],[38.32442,13.31543],[38.08269,13.73291],[38.289937,14.743652],[38.341656,15.490723],[38.479395,15.79834],[38.702659,15.754395],[38.891033,16.083984],[39.232253,15.996094],[40.027614,15.666504],[39.89288,15.402832],[40.245992,14.875488],[40.446947,14.853516],[40.413496,14.47998],[40.63063,14.216309],[40.747257,14.414063],[40.697299,13.776855],[41.112469,13.73291],[41.162114,13.029785],[41.722131,12.128906],[42.098222,11.66748],[42.309815,11.315918],[42.763146,10.656738],[42.988576,10.437012],[43.53262,10.17334],[43.882057,10.217285],[44.040219,9.84375],[44.245199,9.206543],[44.355278,8.789063],[44.040219,8.393555],[43.707594,7.77832],[43.755225,7.558594]]};

// A general-purpose function to return an array of GLatLng objects from an array of [[lat,lng],[lat,lng] . .]
function makeLatLngsFromArray(a){
  var res=[];
  for(var i=0;i<a.length;i++){res[i]=new GLatLng(a[i][0],a[i][1])};
  return res;
}

// map setup
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(40.6897,-95.0446),5);
map.addControl(new GSmallMapControl());

// add the shape as a GPolygoon
var latlngs=makeLatLngsFromArray(shape.points);
var poly=new GPolygon(latlngs, '#ff0000', 3, .8, '#ff0000', .4);
map.addOverlay(poly);