Optimization of the base layer detection in MapOpacitySlider