added Map Layer visibility handling