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

After running self host script styles still point to tiles.openfreemap.org #28

Open
Feryla opened this issue Oct 4, 2024 · 3 comments

Comments

@Feryla
Copy link

Feryla commented Oct 4, 2024

I ran the self host script and set style in maplibre to <MY_DOMAIN>/styles/bright. This fetches the style from my domain, but the style.json still links to tiles.openfreemap.org for all other resources. After replacing all instances of tiles.openfreemap.org with my domain in the style.json it works as expected.

@hyperknot
Copy link
Owner

Hi, thank you for the report. The string "tiles.openfreemap.org" is literally not present in the code part of the repo. Are you sure you didn't fill out DOMAIN_LE=tiles.openfreemap.org in your .config file?

@Feryla
Copy link
Author

Feryla commented Oct 5, 2024

DOMAIN_LE is set to my domain. From what I can tell the styles that are downloaded from assets.openfreemap.com contain references to tiles.openfreemap.org. I guess the style assets need to be post processed after download to point to the correct domain.

@hyperknot
Copy link
Owner

You are very right, the default style is indeed hardcoded! Good catch! I'll need to calculate it on-the-fly.

Also, congratulations for being the first person who tried self-hosting, I'm happy it works and just this bug needs to be fixed.

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

No branches or pull requests

2 participants