-
Notifications
You must be signed in to change notification settings - Fork 14
Candy ace main : TMS support #134
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
base: main
Are you sure you want to change the base?
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| ); | ||
|
|
||
| // Check if any images failed to load | ||
| const failedTiles: string[] = []; |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add an actual example from OAM or host our own demo TMS file we can try with this tiny image:
No description provided.