You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
use hosted default_style.json instead of manual styling #345
Currently the app hard codes the styling which will eventually become stale wrt upstream valhalla. It'd be best to use our github hosted default_style.json.
Hi @nilsnolde , I had a look at valhalla-layers.ts, where the edges, shortcuts and nodes layers are currently defined directly in the web app.
Should this be replaced by loading the default_style.json from the valhalla repository and using that as the MapLibre style instead of maintaining these layer definitions here? (In case this is how you are expecting the flow to be)
Happy to work on this once I have the right understanding.
Should this be replaced by loading the default_style.json from the valhalla repository and using that as the MapLibre style instead of maintaining these layer definitions here? (In case this is how you are expecting the flow to be)
that's exactly how I read my comment and the title..
Should this be replaced by loading the default_style.json from the valhalla repository and using that as the MapLibre style instead of maintaining these layer definitions here? (In case this is how you are expecting the flow to be)
that's exactly how I read my comment and the title..
@nilsnolde,
if no one is working on this issue, may i pick this?
and also i had a confusion regarding this issue, did you just mean to change the MAP_STYLES to take the styling from default_style.json?
Hello @nilsnolde , I’d like to work on this pre-GSoC issue. My plan is to replace the current hardcoded style setup by fetching the hosted default_style.json, while keeping a local fallback in case the remote fetch fails. I’ll also inspect whether any runtime patching is needed for tile/sprite/glyph URLs before applying the style.
Hello @nilsnolde , I’d like to work on this pre-GSoC issue. My plan is to replace the current hardcoded style setup by fetching the hosted default_style.json, while keeping a local fallback in case the remote fetch fails. I’ll also inspect whether any runtime patching is needed for tile/sprite/glyph URLs before applying the style.
I started with an approach where the app fetches the hosted default_style.json, extracts the Valhalla-specific layers from it, and reuses those layer definitions in the app instead of relying on the current manual/local setup.
Before I turn that into a PR, I wanted to confirm the intended scope of this issue: should I keep that layer-extraction approach, or is the expectation here simply to point the default built-in MapLibre style directly to the hosted default_style.json URL?
Hi, I’m a GSoC 2026 applicant and I’m interested in investigating this bug.
I’m currently getting familiar with the web-app codebase and would like to reproduce the issue locally and work on a fix. Please let me know if someone is already actively working on it.
Activity
lourduradjou commentedon Mar 5, 2026
Hi @nilsnolde , I had a look at valhalla-layers.ts, where the edges, shortcuts and nodes layers are currently defined directly in the web app.
Should this be replaced by loading the
default_style.jsonfrom the valhalla repository and using that as the MapLibre style instead of maintaining these layer definitions here? (In case this is how you are expecting the flow to be)Happy to work on this once I have the right understanding.
nilsnolde commentedon Mar 5, 2026
that's exactly how I read my comment and the title..
lourduradjou commentedon Mar 5, 2026
Got it, thanks for confirming!
feat: use hosted default_style.json instead of hardcoded layer styling
nandalalshukla commentedon Mar 18, 2026
@nilsnolde,
if no one is working on this issue, may i pick this?
and also i had a confusion regarding this issue, did you just mean to change the MAP_STYLES to take the styling from default_style.json?
nilsnolde commentedon Mar 18, 2026
maplibre lets you set the URL to the style.json
Guptaji-007 commentedon Mar 20, 2026
Hello @nilsnolde , I’d like to work on this pre-GSoC issue. My plan is to replace the current hardcoded style setup by fetching the hosted default_style.json, while keeping a local fallback in case the remote fetch fails. I’ll also inspect whether any runtime patching is needed for tile/sprite/glyph URLs before applying the style.
Guptaji-007 commentedon Mar 20, 2026
I started with an approach where the app fetches the hosted default_style.json, extracts the Valhalla-specific layers from it, and reuses those layer definitions in the app instead of relying on the current manual/local setup.
Before I turn that into a PR, I wanted to confirm the intended scope of this issue: should I keep that layer-extraction approach, or is the expectation here simply to point the default built-in MapLibre style directly to the hosted default_style.json URL?
nilsnolde commentedon Mar 20, 2026
sure, do it.
but sigh.. I feel like everyone comes to ask the same question.. isn't this #345 (comment) clear enough? maybe I'm missing smth?
ok, again then: simply set the style.json to github's hosted file. no fallback, no other fancy stuff. just that.
fix: use hosted valhalla default_style.json (valhalla#345)
Guptaji-007 commentedon Mar 20, 2026
I’ve opened a PR for this here: #388
Please take a look when you get a chance.
Thank you.
Rohiyadaop commentedon Mar 23, 2026
Hi, I’m a GSoC 2026 applicant and I’m interested in investigating this bug.
I’m currently getting familiar with the web-app codebase and would like to reproduce the issue locally and work on a fix. Please let me know if someone is already actively working on it.