Support minScale and maxScale for layers