﻿var boundPoints = new Object();
var boundP = new Object();

function guardaBouns(bounds) {

boundPoints.SW = bounds.getSouthWest();
boundPoints.NE = bounds.getNorthEast();
boundPoints.CENTRO = bounds.getCenter();

boundPoints.latSO = boundPoints.SW.lat();
boundPoints.lonSO = boundPoints.SW.lng();

boundPoints.latNE = boundPoints.NE.lat();
boundPoints.lonNE = boundPoints.NE.lng();


boundPoints.latINI = boundPoints.CENTRO.lat();
boundPoints.lonINI = boundPoints.CENTRO.lng();
boundPoints.zoomINI = map.getZoom();
}

