This question is an exact duplicate of:

I am trying to control the layer order between a cartoDB layer and a Google FusionTables layer, on a google base map. The CartoDB layer always displays underneath, whereas i want it on top. I have found methods to order layers within Google, or within CartoDB, but not how to order them with respect to each other.

I have mocked up an example here: http://codepen.io/rich_3po/pen/Bjoadr

(the yellow points are from CartoDB, and should display on top of the routes)

How do i go about achieving this?

My question is similar to Ordering Cartodb torque visualization over Google Maps heatmap layer, but the answer wasn't clear and didn't seem to apply to my case

marked as duplicate by PolyGeo May 12 '18 at 6:22

This question was marked as an exact duplicate of an existing question.


I managed to find a solution to this by following the answer at Setting zIndex of CartoDB.js layer on top of Google Map's GroundOverlay?

I dont fully understand what the code is doing, but it works...

Not the answer you're looking for? Browse other questions tagged or ask your own question.