legend layer visibility changed