Map boundary check.