var shape = {"title":"Angel Park Lindell Neighborhood in Las Vegas, NV","description":"","tags":"","points":[[36.16197, -115.291432], [36.162436, -115.291376], [36.162991, -115.291229], [36.163341, -115.291104], [36.163766, -115.290891], [36.164117, -115.29066], [36.164699, -115.290173], [36.165301, -115.289554], [36.165845, -115.288991], [36.166253, -115.288571], [36.166536, -115.28828], [36.166805, -115.287996], [36.167299, -115.28752], [36.167961, -115.287185], [36.168561, -115.287048], [36.169217, -115.287046], [36.173968, -115.287095], [36.177689, -115.287204], [36.177268, -115.283108], [36.177265, -115.281937], [36.177303, -115.280816], [36.177589, -115.279338], [36.177751, -115.278115], [36.177741, -115.274244], [36.177812, -115.269762], [36.177925, -115.265585], [36.178084, -115.263598], [36.178368, -115.261713], [36.178447, -115.259848], [36.177921, -115.259846], [36.173962, -115.259979], [36.166494, -115.26001], [36.163269, -115.260052], [36.162914, -115.260141], [36.162535, -115.260289], [36.162251, -115.260466], [36.16192, -115.26076], [36.161589, -115.261287], [36.161235, -115.261815], [36.160975, -115.262021], [36.160667, -115.262197], [36.160383, -115.262345], [36.160122, -115.262433], [36.159885, -115.262434], [36.159111, -115.262465], [36.159197, -115.266879], [36.159134, -115.271208], [36.159026, -115.28037], [36.159025, -115.281745], [36.159024, -115.282776], [36.159023, -115.284581], [36.159021, -115.287227], [36.159018, -115.291412], [36.159962, -115.291425], [36.16077, -115.291431], [36.16197, -115.291432]],"author":"admin"};
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(36.16197, -115.291432),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());