onthegomap / planetiler

Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Apache License 2.0
1.27k stars 104 forks source link

Loading Planetiler Cut Vector Tiles into Cesium #992

Open CrazyBug-11 opened 3 weeks ago

CrazyBug-11 commented 3 weeks ago

Our current project requires loading the generated tiles onto Cesium's 3D globe, which uses the EPSG:4326 (CRS84) coordinate system. However, the tiles cut by Planetiler use the EPSG:3857 - WGS 84 / Pseudo-Mercator coordinate system. Therefore, I am planning to conduct some secondary development based on Planetiler, with the aim of either slicing tiles according to a specified tile matrix or generating tiles directly in the CRS84 coordinate system.

I would like to seek your advice on what changes would be necessary to achieve this functionality, and whether this task might be particularly challenging. I have currently identified that significant modifications might be required in the GeoUtils and TileCoord classes. I would greatly appreciate any guidance on how to proceed with this task. Thank you very much.

msbarry commented 2 weeks ago

I don't have any experience using mvt's in cesium, I see this package which appears to allow you to use standard vector tiles on cesium: https://github.com/davenquinn/cesium-vector-provider - are you using something like that? or something different ?