made tilelayer switchable