Use threads to make layer requests
Merge pull request #648 from cmc333333/optimize-threads

Use threads to make layer requests