Skip to content

Conversation

@mhassanch
Copy link
Collaborator

No description provided.

Copilot AI and others added 9 commits October 17, 2025 01:37
Co-authored-by: CandyACE <31685984+CandyACE@users.noreply.github.com>
Co-authored-by: CandyACE <31685984+CandyACE@users.noreply.github.com>
Add TMS (Tile Map Service) provider support
Co-authored-by: CandyACE <31685984+CandyACE@users.noreply.github.com>
Co-authored-by: CandyACE <31685984+CandyACE@users.noreply.github.com>
…older

Add placeholder support for TMS baseUrl with {x}, {y}, {z} tokens
@vercel
Copy link

vercel bot commented Nov 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
geobase-ai-js-docs Ready Ready Preview Comment Nov 28, 2025 6:51am
geobase-geoai-js-examples Ready Ready Preview Comment Nov 28, 2025 6:51am

);

// Check if any images failed to load
const failedTiles: string[] = [];
Copy link
Member

Choose a reason for hiding this comment

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

We don't need to loop twice over the tiles array - the failed list can be created in the catch above

import { Tms } from "geoai";

const provider = new Tms({
baseUrl: "https://example.com/tiles/{z}/{x}/{y}.png",
Copy link
Member

Choose a reason for hiding this comment

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

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.

4 participants