Skip to content

[BUG](overture-tiles) use QueryBuilder component for dynamic release paths for tile URL - #469

Merged
John McCall (lowlydba) merged 2 commits into
OvertureMaps:mainfrom
shuuji3:fix/pmtiles-use-latest-release-date
Aug 10, 2026
Merged

[BUG](overture-tiles) use QueryBuilder component for dynamic release paths for tile URL#469
John McCall (lowlydba) merged 2 commits into
OvertureMaps:mainfrom
shuuji3:fix/pmtiles-use-latest-release-date

Conversation

@shuuji3

@shuuji3 TAKAHASHI Shuuji (shuuji3) commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Pull Request

resolve #470

This PR replaced the hardcoded date with QueryBuilder component to ensure to dynamically generate the latest date.

I also update the QueryBuilder component as it doesn't support the inline <code> element. Now when you specity new inline attribute, it instead returns <code> element.

Marked strings are now dynamically updated:

Screenshot of updated page, release date string are highlighted by yellow color

@shuuji3
TAKAHASHI Shuuji (shuuji3) requested a review from a team as a code owner August 8, 2026 07:08
@shuuji3 TAKAHASHI Shuuji (shuuji3) changed the title fix(overture-tiles): use QueryBuilder component for dynamic release paths for tile URL [BUG](overture-tiles) use QueryBuilder component for dynamic release paths for tile URL Aug 8, 2026
@shuuji3
TAKAHASHI Shuuji (shuuji3) force-pushed the fix/pmtiles-use-latest-release-date branch from 1ae70ce to 83f3ed7 Compare August 8, 2026 07:15
…aths for tile URL

Signed-off-by: TAKAHASHI Shuuji <id@shuuji3.xyz>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PMTiles “Overture tiles” documentation to stop hardcoding release dates by using the existing QueryBuilder component, and extends QueryBuilder to support inline code and link rendering with placeholder substitution.

Changes:

  • Added placeholder substitution helper and new rendering modes (href<a>, inline<code>) to QueryBuilder.
  • Replaced hardcoded release strings in docs/examples/overture-tiles.mdx with QueryBuilder placeholders so URLs/snippets track the latest configured release.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/components/queryBuilder.js Refactors placeholder replacement and adds link/inline rendering modes to support dynamic release strings in more contexts.
docs/examples/overture-tiles.mdx Replaces hardcoded release date strings with QueryBuilder placeholders for PMTiles URLs and command examples.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/components/queryBuilder.js
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: TAKAHASHI Shuuji <id@shuuji3.xyz>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@lowlydba John McCall (lowlydba) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TAKAHASHI Shuuji (@shuuji3) Thanks for the issue and fix! The NATURAL_LANGUAGE lint error is pre-existing, so we can ignore that for this context.

@lowlydba
John McCall (lowlydba) merged commit c503c4d into OvertureMaps:main Aug 10, 2026
13 of 14 checks passed
@shuuji3
TAKAHASHI Shuuji (shuuji3) deleted the fix/pmtiles-use-latest-release-date branch August 10, 2026 15:56
@shuuji3

Copy link
Copy Markdown
Contributor Author

Confirmed the fix. Thanks!

https://docs.overturemaps.org/examples/overture-tiles/

image

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

Successfully merging this pull request may close these issues.

[BUG] PMTiles page has an oudtead invalid tile URL

3 participants