update build
wrap tile bounds when checking against layer bounds, close #1618