PMTiles icon indicating copy to clipboard operation
PMTiles copied to clipboard

JavaScript API needs method to retrieve TileJSON

Open bdon opened this issue 2 years ago • 1 comments

since this is used internally by the MapLibre adapter, we can expose TileJSON, though should it include metadata like vector_layers?

Requested by @JinIgarashi

bdon avatar Aug 21 '23 10:08 bdon

Thank you for creating the issue. Yes, I think it would be useful if tilejson includes metadata like vector_layers and tilestats (if available).

JinIgarashi avatar Aug 22 '23 18:08 JinIgarashi

This is added in 3.1.0:

https://pmtiles.io/typedoc/classes/PMTiles.html#getTileJson

bdon avatar Sep 19 '24 15:09 bdon