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

refactor(layer-categories): fetch layer categories from external service #917

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

andreashelms
Copy link
Collaborator

closes #902

@andreashelms andreashelms requested a review from hbruch January 30, 2025 21:14
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.

We should provide a default behavior for stadtnavi instances not yet providing a specifiv layerCategoriesURL.


const context = dispatcher.getContext();

fetch(context.config.layerCategoriesUrl)
Copy link

Choose a reason for hiding this comment

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

This will break for other stadtnavi instances, no? I think we should fall back to a minimal default config here. Let's discuss how it should like

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No this won't break other instances, because they are not using external provided layer config at all.

@andreashelms andreashelms force-pushed the refactor/fetch-external-layer-categories branch from b511c39 to f84fc3e Compare February 5, 2025 14:17
@andreashelms andreashelms force-pushed the refactor/fetch-external-layer-categories branch from f84fc3e to 6f38a23 Compare February 5, 2025 14:23
@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.

The changes caused sights to appear below the POI layers, while according to the layers config file, it should appear as the first layer, no?

image

@andreashelms andreashelms requested a review from hbruch February 6, 2025 13:38
@andreashelms andreashelms force-pushed the refactor/fetch-external-layer-categories branch from 829e986 to 09f7af6 Compare February 6, 2025 16:31
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, thanks.

@hbruch hbruch merged commit 3ffac7b into next Feb 7, 2025
5 checks passed
@hbruch hbruch deleted the refactor/fetch-external-layer-categories branch February 7, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use https://services.stadtnavi.eu/layer-categories/herrenberg/layers.json to fetch map layer categories
2 participants