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

Show tile timestamp #614

Open
1ec5 opened this issue Dec 10, 2022 · 1 comment
Open

Show tile timestamp #614

1ec5 opened this issue Dec 10, 2022 · 1 comment
Labels
enhancement New feature or request maplibre Needs maplibre feature or expertise

Comments

@1ec5
Copy link
Member

1ec5 commented Dec 10, 2022

The vector tiles aren’t being generated on a short, regular interval yet, so the user doesn’t have a good sense for how old the visible data is. We should display a timestamp of when the tiles were last generated, or perhaps the timestamps of the OSM planet file and Wikidata dump that were used to generate the tiles.

Ideally, the TileJSON file v3.json would have a metadata field with this timestamp in it, and then we could grab it out of the vector source. However, GL JS doesn’t preserve TileJSON metadata: mapbox/mapbox-gl-js#5471maplibre/maplibre-gl-js#2965. As a workaround, the attribution string could be modified to include the timestamp, which GL JS would show automatically. Alternatively, the process for generating the tiles could spit out a separate JSON file alongside v3.json that this project could fetch manually.

@1ec5 1ec5 added enhancement New feature or request openmaptiles A change is needed in OpenMapTiles to support this labels Dec 10, 2022
@1ec5
Copy link
Member Author

1ec5 commented Jun 8, 2023

Ideally, the TileJSON file v3.json would have a metadata field with this timestamp in it, and then we could grab it out of the vector source.

The TileJSON now contains timestamp metadata as of onthegomap/planetiler#428. However, GL JS is still discarding this data.

@1ec5 1ec5 added maplibre Needs maplibre feature or expertise and removed openmaptiles A change is needed in OpenMapTiles to support this labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maplibre Needs maplibre feature or expertise
Projects
None yet
Development

No branches or pull requests

1 participant