Open limzgiser opened 4 years ago
I've same problem with mapbox version > 0.54
Have you found a fix ?
Same problem here...doesn't seem to be an issue with custom-layers generally
There is more information in this issue: https://github.com/mapbox/mapbox-gl-js/issues/7395
peterqliu commented on 16 Nov 2018
[...] The custom layer draws within the context of the 2D layer stack, regardless of whether the layers themselves are 3D. For proper depth testing, you would put all 3D elements into the same custom layer
You can add
gl.clear(gl.DEPTH_BUFFER_BIT);
in render() of layer in first position (before all actions in this function). But three objects will be always above buildings.
After tests, CameraSync is the thing that 3D depth calcul isn't working.
Maybe this.camera.matrixWorld.copy()
or translation of the world group... i don't know.
I think i will create a world group, positionned at 0,0,0 and translate camera instead of translating world group. Difficult is to convert world coords to and from lat/lng.
map.moveLayer('id1','id2')
yes i got same issue after using gl.clear(gl.DEPTH_BUFFER_BIT);
, also i tried to change ordering nothing work correctly. here a screenshot:
anyone solved this issue?
Hi @adelchamas96 , @limzgiser , @joedjc I I have solved this problem at my fork fine tuning the CameraSync object.
Can someone help me,Why can't I move the layer above the building layer?