tileserver-gl icon indicating copy to clipboard operation
tileserver-gl copied to clipboard

Projection of non-Earth fantasy vector maps without distortion

Open zned45 opened this issue 2 years ago • 1 comments

I am currently working on a project related to a game. We have a non-earth square vector map created in QGIS which we are trying to serve using tileserver-gl

After copy the .mbtiles into the folder, I get the following spec with EPSG:3857 projection despite tiles being exported with no CRS.

{
  "tiles": ["http://localhost:8080/data/Map/{z}/{x}/{y}.pbf"],
  "name": "unnamed",
  "format": "pbf",
  "basename": "Map.mbtiles",
  "id": "Map",
  "vector_layers": [{ "fields": { "id": "Number" }, "id": "land" }],
  "type": "baselayer",
  "minzoom": 2,
  "maxzoom": 2,
  "bounds": [-0.000741689, -0.000646808, 0.000739646, 0.000650274],
  "crs": "EPSG:3857",
  "center": [-0.0000010214999999999834, 0.0000017329999999999646, 2],
  "tilejson": "2.0.0"
}

The effect of this is that the map get stretched vertically (seen with the server MapLibre visualizer. There is any way to serve the tiles with a custom projection or no projection at all? Is Tileserver GL even the right tool to achieve this?

Thank you.

zned45 avatar Oct 22 '22 12:10 zned45