// This is your shape
var shape={"points":[[46.0360924258934,11.2327694892883],[46.0362413859463,11.2332201004028],[46.0362413859463,11.2340569496155],[46.0362860738839,11.2351942062378],[46.0363456577444,11.2355589866638],[46.0363605536995,11.2359023094177],[46.0362860738839,11.2362885475159],[46.0363158658222,11.2365889549255],[46.0371500335739,11.2376403808594],[46.0373585735443,11.2378120422363],[46.0375671127276,11.2377905845642],[46.0378650244815,11.238112449646],[46.0378352333784,11.2386059761047],[46.0377607555503,11.2387347221375],[46.0378203378208,11.2388849258423],[46.037730964391,11.2391209602356],[46.0377905466936,11.2397003173828],[46.037730964391,11.2407088279724],[46.037730964391,11.2408804893494],[46.0375522170978,11.2412881851196],[46.0376117995931,11.2421035766602],[46.0377607555503,11.242253780365],[46.0376266952069,11.2426400184631],[46.0371798250464,11.2431120872498],[46.0370606590599,11.2434124946594],[46.0368521179653,11.2434339523315],[46.0360924258934,11.2439274787903],[46.0356008548697,11.2439489364624],[46.0354667892862,11.2440133094788],[46.0351688646028,11.2439703941345],[46.0347964564898,11.2439489364624],[46.0343793564239,11.2441205978394],[46.033992046401,11.2441635131836],[46.0335600435578,11.2446141242981],[46.0332621085949,11.2448072433472],[46.0330237594682,11.2448716163635],[46.0325619551099,11.244957447052],[46.0313105948736,11.2450218200684],[46.0309679555823,11.2450647354126],[46.0308040838659,11.245129108429],[46.0304763389757,11.2446999549866],[46.0299698203226,11.2454080581665],[46.0297314569974,11.2455797195435],[46.0294930926442,11.2455797195435],[46.0292249315181,11.2456011772156],[46.0288971772639,11.2454295158386],[46.0287035033819,11.245493888855],[46.0282863573314,11.2454080581665],[46.0279734957276,11.2454724311829],[46.0274222590694,11.2452149391174],[46.0270646972167,11.2449145317078],[46.026483654273,11.2449145317078],[46.0259473015196,11.2448716163635],[46.0252321564199,11.2452363967896],[46.0248298832356,11.2454080581665],[46.0243829095977,11.2455153465271],[46.0242190183583,11.2457299232483],[46.0240700259009,11.2462663650513],[46.0237571404332,11.2466526031494],[46.022088388032,11.248927116394],[46.0217456915727,11.2492275238037],[46.0214476929249,11.2494850158691],[46.0186017249251,11.253776550293],[46.018571923438,11.2542486190796],[46.0179907912306,11.2559008598328],[46.0176480693734,11.2564373016357],[46.0173798507861,11.2566947937012],[46.0168881133303,11.2569737434387],[46.0164410754849,11.257209777832],[46.0162473579629,11.2575316429138],[46.0159940340256,11.2577247619629],[46.0156662013252,11.2579822540283],[46.0152042519487,11.2584328651428],[46.0148466110715,11.2588405609131],[46.0146975933567,11.2591624259949],[46.0136991643095,11.2602567672729],[46.0134011222945,11.2604713439941],[46.0128795449032,11.2607717514038],[46.0126262055383,11.2610077857971],[46.0120003033086,11.2619733810425],[46.0117320573275,11.2623167037964],[46.011523420665,11.2624454498291],[46.0112402696498,11.2625741958618],[46.0109273115781,11.2626814842224],[46.0103908079066,11.2627673149109],[46.0101374571417,11.2628746032715],[46.0098692021256,11.2630248069763],[46.0096158489714,11.2631964683533],[46.0091687523389,11.2636041641235],[46.00848319715,11.2644195556641],[46.0083341622889,11.2646985054016],[46.0082447411795,11.2649989128113],[46.0073356183616,11.2664365768433],[46.0071716765912,11.2663078308105],[46.0067245602023,11.2654709815979],[46.0063519604508,11.2643551826477],[46.0060985911863,11.2632822990417],[46.0057408914254,11.2621235847473],[46.0054428065245,11.2613725662231],[46.0051149112783,11.2608575820923],[46.0049807717538,11.2601280212402],[46.0050701981396,11.2598705291748],[46.0048913452234,11.2596774101257],[46.004503828588,11.2585186958313],[46.0038033108583,11.2571024894714],[46.0036691681535,11.2566733360291],[46.0037138824246,11.2565231323242],[46.0036393586194,11.2562656402588],[46.0037138824246,11.2560725212097],[46.003445596256,11.2554717063904],[46.0034754058945,11.2549352645874],[46.0034008817681,11.2546563148499],[46.003251833214,11.2544417381287],[46.0030878793407,11.2542915344238],[46.0028195901363,11.2539911270142],[46.0025214894944,11.2534332275391],[46.0022979129589,11.2527465820312],[46.0020147147169,11.2515234947205],[46.0017464203084,11.250364780426],[46.0017464203084,11.2496566772461],[46.0017762308625,11.2490773200989],[46.0019252833919,11.2489700317383],[46.0021637666039,11.2484765052795],[46.0029835448047,11.2478113174438],[46.0036393586194,11.2476825714111],[46.0039970719689,11.2477040290833],[46.0045783512287,11.2475967407227],[46.0048615363479,11.2474250793457],[46.005919741595,11.2472748756409],[46.0069183110812,11.2481331825256],[46.0074250409407,11.2483048439026],[46.0076635004448,11.2482404708862],[46.0077380188291,11.2478542327881],[46.0076485967559,11.2467384338379],[46.0073803296692,11.246030330658],[46.0073803296692,11.2455582618713],[46.0075442708213,11.244957447052],[46.0075144633752,11.2425756454468],[46.0075442708213,11.2419962882996],[46.0075442708213,11.2408590316772],[46.0076784041297,11.2404727935791],[46.0076635004448,11.2397217750549],[46.0080211877736,11.2389063835144],[46.0086024247498,11.2382411956787],[46.0088706859095,11.2377047538757],[46.0093028817082,11.2373614311218],[46.0107931861481,11.2370824813843],[46.0112253669246,11.2369108200073],[46.0127901311422,11.2362885475159],[46.0132670028636,11.2359881401062],[46.0142207339709,11.2352156639099],[46.0146081825351,11.2350654602051],[46.0157854134412,11.2349796295166],[46.0160834426066,11.234872341156],[46.0164559768047,11.2346363067627],[46.0167987060503,11.2342715263367],[46.0172159387867,11.2338852882385],[46.0174543560798,11.2334990501404],[46.017871583869,11.233069896698],[46.0183484117734,11.2327694892883],[46.0188550369163,11.2325763702393],[46.0191530495379,11.2325978279114],[46.0195106625637,11.2322545051575],[46.0198384724721,11.2316966056824],[46.020255682272,11.2312459945679],[46.0210155920327,11.2309455871582],[46.0214029929892,11.2310528755188],[46.0215668925768,11.2310314178467],[46.0219840893344,11.2307524681091],[46.022431082367,11.2308597564697],[46.0230270674555,11.2306666374207],[46.0232505602073,11.230731010437],[46.0235783479424,11.2305593490601],[46.024055126633,11.2306022644043],[46.0246212959877,11.2308168411255],[46.0250831666929,11.2311387062073],[46.0255450335394,11.2312889099121],[46.0262750732651,11.2313103675842],[46.0266028430671,11.2315893173218],[46.0268710169141,11.2320184707642],[46.0267816257763,11.2313961982727],[46.0270497987559,11.2311172485352],[46.0274669541384,11.2314605712891],[46.0275712424921,11.2320399284363],[46.0278841063726,11.2332201004028],[46.0283012554589,11.2336707115173],[46.028718401397,11.2330269813538],[46.029329216555,11.2329840660095],[46.0309977503876,11.2326622009277],[46.0315191568806,11.2322974205017],[46.0318915870783,11.2322545051575],[46.0321299410878,11.2320828437805],[46.0323533970381,11.2313747406006],[46.0335153534157,11.2296581268311],[46.0337239071027,11.2294864654541],[46.0342154948224,11.229465007782],[46.0347517673476,11.2297224998474],[46.0351688646028,11.230001449585],[46.0356157510256,11.2304091453552],[46.0364350334148,11.231803894043],[46.0361222179361,11.2323403358459],[46.0359881536174,11.2325763702393],[46.0360924258934,11.2327694892883]],"title":"Caldonazzo Lake","notes":"Lago di Caldonazzo","tags":["lake","italy","caldonazzo"],"author":""};

// 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);