var shape = {"title":"Arlington Heights Neighborhood in Dayton, OH","description":"","tags":"","points":[[39.741025, -84.252769999999998], [39.740875000000003, -84.252955999999998], [39.741055000000003, -84.252951999999993], [39.741531000000002, -84.252960000000002], [39.741706999999998, -84.252964000000006], [39.741930000000004, -84.252967999999996], [39.742064999999997, -84.252972], [39.742612999999999, -84.252987000000005], [39.742716000000001, -84.252992000000006], [39.742772000000002, -84.252981000000005], [39.743119999999998, -84.252986000000007], [39.743223, -84.252987000000005], [39.743571000000003, -84.252990999999994], [39.743958999999997, -84.252987000000005], [39.74521, -84.253013999999993], [39.746715000000002, -84.253038000000004], [39.747157999999999, -84.253028999999998], [39.747981000000003, -84.253011999999998], [39.748277000000002, -84.253028999999998], [39.749415999999997, -84.253100000000003], [39.749614999999999, -84.251845000000003], [39.749814000000001, -84.250572000000005], [39.749851999999997, -84.250335000000007], [39.750000999999997, -84.249616000000003], [39.750056999999998, -84.249290000000002], [39.750267000000001, -84.248026999999993], [39.750475000000002, -84.246781999999996], [39.750675000000001, -84.245519000000002], [39.750889999999998, -84.244255999999993], [39.751007999999999, -84.243595999999997], [39.751085000000003, -84.243159000000006], [39.751252999999998, -84.242165999999997], [39.751336999999999, -84.241669999999999], [39.751427, -84.241129000000001], [39.751596999999997, -84.240155000000001], [39.751621999999998, -84.239984000000007], [39.751643000000001, -84.239825999999994], [39.751691000000001, -84.239406000000002], [39.751742, -84.239028000000005], [39.751865000000002, -84.238248999999996], [39.751936000000001, -84.237803999999997], [39.752051000000002, -84.237126000000004], [39.752149000000003, -84.236570999999998], [39.752257, -84.235962000000001], [39.752347999999998, -84.235393000000002], [39.752448999999999, -84.234764999999996], [39.752538999999999, -84.234227000000004], [39.752636000000003, -84.233677], [39.752809999999997, -84.232662000000005], [39.752963999999999, -84.231646999999995], [39.752139999999997, -84.231633000000002], [39.750338999999997, -84.231633000000002], [39.749535000000002, -84.231606999999997], [39.749338000000002, -84.231589999999997], [39.749257999999998, -84.231594000000001], [39.748987999999997, -84.231651999999997], [39.748814000000003, -84.232355999999996], [39.748612999999999, -84.233121999999995], [39.748530000000002, -84.233530000000002], [39.748449999999998, -84.233953999999997], [39.748317999999998, -84.234827999999993], [39.748139999999999, -84.236000000000004], [39.747829000000003, -84.238275999999999], [39.747742000000002, -84.238821999999999], [39.747718999999996, -84.238947999999993], [39.747633999999998, -84.239332000000005], [39.747580999999997, -84.239555999999993], [39.747439, -84.240064000000004], [39.747278999999999, -84.240455999999995], [39.747093, -84.240871999999996], [39.746887999999998, -84.241298999999998], [39.746639999999999, -84.241726], [39.745832999999998, -84.243050999999994], [39.745489999999997, -84.243543000000003], [39.745306999999997, -84.243881000000002], [39.745147000000003, -84.244237999999996], [39.744993999999998, -84.244636], [39.744819, -84.245071999999993], [39.744650999999998, -84.245538999999994], [39.744390000000003, -84.246323000000004], [39.744200999999997, -84.246888999999996], [39.743828000000001, -84.247994000000006], [39.743479999999998, -84.248918000000003], [39.743276999999999, -84.249397999999999], [39.743146000000003, -84.249695000000003], [39.74297, -84.250031000000007], [39.742804, -84.250310999999996], [39.742559, -84.250682999999995], [39.742505999999999, -84.250760999999997], [39.741959000000001, -84.251577999999995], [39.741781000000003, -84.251788000000005], [39.741579999999999, -84.252027999999996], [39.741230999999999, -84.252497000000005], [39.741025, -84.252769999999998]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(39.741025, -84.25277),5);
map.addControl(new GSmallMapControl());
var latlngs = [];
for (var i=0; i<shape.points.length; i++)
{
    latlngs[i] = new GLatLng(shape.points[i][0], shape.points[i][1]);
}
var poly = new GPolygon(latlngs, '#ff0000', 3, .8, '#ff0000', .4);
map.addOverlay(poly);
var bounds = poly.getBounds();
map.setZoom(map.getBoundsZoomLevel(bounds));
map.panTo(bounds.getCenter());