GroundPolylineGeometry broken on mobile

1. A concise explanation of the problem you’re experiencing.
GroundPolylineGeometry are broken on mobile (graphical glitch on Galaxy Note 9, Huawei P9 Lite, Wikio UFeel; on a old Note 3 polyline is drawn under the terrain)

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

Just try the Sandcastle demo.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

Because we made a nice Cesium based widget to show cycle routes and we were very happy,
and now we discovered that it doesn’t work on mobile and we are soo sad :frowning:
(I’m joking, for our use case I think we can easily switch to corridors - we show just one route at a time - but I think that it simply should works on every device)

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.51, Android 7 (Note 9), 6 (P9 Lite, Wikio), 5 (Note 3), Chrome latest version

I forgot to specify that you can see the glitch only a certain distances (near - but not so near, a “useful” near, not a “I wanna see the bee on the flower” near, and far).

Thank you!

Thanks for reporting this, sorry to hear it’s breaking your app!

I don’t see an issue open for this. Would you be able to see if you can recreate it in this Sandcastle example:

And if so, open an issue with screenshots from that on here:

https://github.com/AnalyticalGraphicsInc/cesium/issues

And then I’ll try to ping Gary (who originally wrote the polylines on terrain) to see if he knows what the issue might be.

Hi Omar,
thank to you for your reply.
I have replicated the problem with the Sandcastle example that Gary linked on his article (https://cesium.com/blog/2018/07/23/polylines-on-terrain/),
I tried now the Sandcastle example you linked and I think that the problem is a lot bigger than previously thought. My results:
Galaxy Note 9
Point with label: OK
Billboard: OK
Corridor: not displayed at all
Polygon: not displayed at all:
Textured polygon: not displayed at all
Rectangle: not displayed at all
Model: OK
Sample line: OK
Polyline: OK with glitches I described
iPhone 6 / iOS 12
Point with label: OK
Billboard: OK
Corridor: not displayed at all
Polygon: not displayed at all:
Textured polygon: not displayed at all
Rectangle: not displayed at all
Model: OK
Sample line: OK
Polyline: OK with glitches I described
Galaxy Note 3
Point with label: OK
Billboard: OK
Corridor: OK (LOL)
Polygon: OK
Textured polygon: error message “not supported”
Rectangle: OK
Model: OK
Sample line: OK
Polyline: not displayed at all

Houston, we have a problem :smiley:

I’ll open an issue on GitHub.

Thank you!

Claudio

Yeah I think I noticed that when I tested on an iPad:

https://github.com/AnalyticalGraphicsInc/cesium/issues/7273#issuecomment-439989992

Looks like it just might be a matter if incorrectly identifying support for certain browser features.