Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(map-layers): stop layers shown even if disabled #884

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

andreashelms
Copy link
Collaborator

@andreashelms andreashelms commented Jan 13, 2025

closes #883
closes #790

@andreashelms andreashelms requested a review from hbruch January 13, 2025 15:52
}
});
} else if (layerOptions.stop[key] && allModes.includes(key)) {
if (layerOptions.stop[key] && allModes.includes(key)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure whether the lockedMapLayers are needed for StadtNavi at all or if the could removed from code completely.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not remove upstream functionality. Could you introduce a config variable like "enableLockedMapLayers" (with default = true if unset)

Copy link

@hbruch hbruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you have a look at the comment, please?

}
});
} else if (layerOptions.stop[key] && allModes.includes(key)) {
if (layerOptions.stop[key] && allModes.includes(key)) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not remove upstream functionality. Could you introduce a config variable like "enableLockedMapLayers" (with default = true if unset)

@andreashelms andreashelms force-pushed the fix/map-layer-stops-locked branch from e8de1e1 to 5f56cfa Compare February 5, 2025 16:11
@andreashelms andreashelms requested a review from hbruch February 5, 2025 16:35
Copy link

@hbruch hbruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andreashelms andreashelms merged commit d095802 into next Feb 6, 2025
5 checks passed
@andreashelms andreashelms deleted the fix/map-layer-stops-locked branch February 6, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants