Is it possible that using GridImageryProvider/TileCoordinatesImageryProvider to draw lat/lon grids?

Hi all,

I want to draw lat/lon girds on Cesium surface, and have tried to use this example: https://groups.google.com/d/msg/cesium-dev/12agc5KrGQE/OLmI0zb70vkJ. But it seems to have some problems, like the grids don’t be drawn when latitude or longitude near 0, and it would be overlapped with terrain in 3D scene.

Cesium provides some related functions, GridImageryProvider and TileCoordinatesImageryProvider, to draw the grids and they look great. But I can’t change the intervals of lat/lon to 1°, 5°, or 10° since the amount of x,y grid value is always 2, 4, 8, 16… and other multiples of 2, and the intervals are 180°, 90°, 45°, 22.5° … Does it have any solution to make the intervals of lat/lon to 1°, 5°, or 10°? Or is it possible that using GridImageryProvider/TileCoordinatesImageryProvider to draw lat/lon grids?

Thanks a lot~

Hello,

Using polylines is still the best solution we have. But you’re right, those unfortunately don’t draw on top of terrain.

-Hannah

Hi Hannah,

Thanks for your response, so the polyline function will be perfect one day :slight_smile:

Hannah Pinkos於 2015年12月23日星期三 UTC+8下午11時31分42秒寫道: