Add feature to workaround zoom to layer problem.