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

Allow changing the vector tile style #85

Open
asitemade4u opened this issue Aug 12, 2022 · 4 comments
Open

Allow changing the vector tile style #85

asitemade4u opened this issue Aug 12, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@asitemade4u
Copy link

asitemade4u commented Aug 12, 2022

Currently Headway uses bright style but it would be nice to allow the style to be changed from the docker-compose.yml file, as an environment entry.

@ellenhp ellenhp added the enhancement New feature or request label Aug 12, 2022
@ellenhp
Copy link
Member

ellenhp commented Aug 15, 2022

First I'd like to get one working map style (see: #47), but this is a good idea. :) We're actually using a fork of OSM Liberty though, it's just named like OSM Bright because I forgot to rename it when I changed the style.

@ellenhp
Copy link
Member

ellenhp commented Aug 21, 2022

This will be trickier than I thought so I'm adding a help wanted tag. If someone wants to tackle please PR it back :)

@ellenhp ellenhp added the help wanted Extra attention is needed label Aug 21, 2022
@lindleyw
Copy link

If this were possible, I would like to help create for example a config that would show railroads in heavy dark lines, trams and metros a contrasting color, and all roads in light grey.

@ellenhp
Copy link
Member

ellenhp commented Aug 22, 2022

In that vein, it would be very cool to allow headway to switch styles at runtime too.

The way I see it this will require a change to the tileserver init code to pull in style templates from a pre-generated artifact tarball, then run envsubst on each one, and save them to the correct location. After that, it will generate a tileserver configuration json file that will point tileserver-gl-light at each style. Once that's done, something will have to be done to point the frontend at the correct style. I don't really have ideas for that at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants