Fix day/night state not updating when map isn't selected
This commit is contained in:
parent
acd3e8a443
commit
9473754313
@ -90,7 +90,7 @@ export default defineComponent({
|
||||
|
||||
watch(active, (newValue) => newValue ? enableLayer() : disableLayer());
|
||||
watch(night, (newValue) => {
|
||||
if(props.map.nightAndDay && active.value) {
|
||||
if(props.map.nightAndDay) {
|
||||
layer.setNight(newValue);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user