def validate_zoom(zoom):
    """
    Assert zoom value is positive integer.

    Returns
    -------
    zoom

    Raises
    ------
    TypeError if type is invalid.
    """
    if any([not isinstance(zoom, int), zoom < 0]):
        raise TypeError('zoom must be a positive integer: %s' % zoom)
    return zoom
