stop polling when layer is hidden
Merge pull request #150 from lexoyo/develop

stop polling when layer is hidden