Morecantile.js a possible community need? #153
AndrewAnnex
started this conversation in
General
Replies: 1 comment 4 replies
-
@AndrewAnnex I think you're talking about the usage of This could be easily replace by a new endpoint within the tilebench application (which will then use morecantile) instead of trying to do this (creating the geojson tile grid) in the frontend I would recommend to do this (updating tilebench) in two steps: 1. switch to leaflet 2. add TMSgrid endpoint |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been doing some work on my planetcantile project that provides a TiTiler endpoint with additional/not official (yet) TileMatrixSets for other planetary bodies like the Moon and Mars. As part of that effort I am currently updating tilebench and I am running into an issue where the viz tool requests the wrong tiles given the tilematrixset.
The reason for that seems to be the javascript within tilebench that does the lon/lat to tile id conversion. While I think I can solve that particular problem myself within that code, I realized that the community could benefit from a Javascript version of Morecantile that is able to perform the tile id and coordinate transformations to allow front ends like maplibre/leaflet/openlayers to use tilematrixsets natively in JS, and could simplify adding support for other TMS specs in these tools.
I'd expect this new library to provide a subset of the capabilities of morecantile due to limitations in proj4js, so it could be a pretty light weight dependency in the end if scoped right.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions