Replies: 1 comment 2 replies
-
Right extracting functionality is not a major priority for maplibre-rs. Right now its very handy to have everything at one place while things are moving very quickly. It could make sense to extract tilejson, but at the same time it could make things more complicated without a real benefit. For example it would not be possible to implement an arbitrary external So I think we should discuss this again in about half a year, when things have settled a little bit more. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Both
maplibre-rs
andmbtileserver
use near-identical TileJSON struct and other code. I believe we should refactor the code such that they can be easily shared across multiple projects. Preliminary list of shareable features:TileJSON
- use georust/tilejson lib for the serializable struct representing tilejson spec.z/x/y
representation - integer representation of the tile coordinate, with validation, and max value per zoom. Also declares MAX_ZOOM. Could also include packed representation, e.g. single u32 value representing z 0..15.All of the above are fairly tightly coupled, so might make sense to have them as a single crate.
TBD:
maplibre-rs
repo (my preference) or a separate repo?Beta Was this translation helpful? Give feedback.
All reactions