openfreemap icon indicating copy to clipboard operation
openfreemap copied to clipboard

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

Open Feryla opened this issue 1 year ago • 3 comments

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.

Feryla avatar Oct 04 '24 23:10 Feryla

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?

hyperknot avatar Oct 05 '24 00:10 hyperknot

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.

Feryla avatar Oct 05 '24 11:10 Feryla

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.

hyperknot avatar Oct 05 '24 11:10 hyperknot