              prec = 12;
                    } else if (level > 15) {
                        prec = 12;
                    }
                    return prec;
                }

                function wrapLatLngBounds(bound) {
                    var left = bound.getWest() < -180 ? -179.99 : bound.getWest();
                    var bottom = bound.getSouth() < -90 ? -89.99 : bound.getSouth();
                    var right = bound.getEast() > 180 ? 179.99 : bound.getEast();
                    var top = bo