-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
app/util/mapLayerUtils.js
Outdated
} | ||
}); | ||
} else if (layerOptions.stop[key] && allModes.includes(key)) { | ||
if (layerOptions.stop[key] && allModes.includes(key)) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this 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?
app/util/mapLayerUtils.js
Outdated
} | ||
}); | ||
} else if (layerOptions.stop[key] && allModes.includes(key)) { | ||
if (layerOptions.stop[key] && allModes.includes(key)) { |
There was a problem hiding this comment.
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)
e8de1e1
to
5f56cfa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
closes #883
closes #790