Prevented rerender of map when a single layer's visibility is changed during changing the visibilty of a category layer