googlemaps/js-three

polyline over 3d object

Closed this issue · 1 comments

dognk commented

Environment details

javascript, google maps, threejs

Steps to reproduce

  1. i draw a polyline with google maps and put the 3d objects whit threejs but the line draw over the 3d object

example

ejemplo

Following these steps will guarantee the quickest resolution possible.

Thanks!

This is expected behavior. What's happening is that the 3D object is rendered directly as part of the basemap, but polylines are actually rendered in a separate overly on the map. The only way to achieve the effect you are looking for would be to also draw the polyline using ThreeJS (or WebGL directly or some other WebGL library). Then you could control the stacking order.