Just want to get a bit of clarity about this query from before:

Layer order in CartoDB

I have a map with a Basemap and I want to draw points between features based on layer featureclicks, The good news is I've got that far.

However i'd like my newly created layer to sit between the marker layer and the tile layer. Is this even possible?

Heres a link to my code on github

  • could you clarify a little bit the question: name the layers and the order you want to achieve. Some code extracts would be also good. thanks Commented Jan 12, 2015 at 9:09
  • Hi The code can be found here I'd like the polyline created on lines 81-86 to sit under the layer with the markers and above the tilelayer. Commented Jan 12, 2015 at 19:02

1 Answer 1


Your code syntax is incorrect. Please, verify it and check blocks.

I'm attaching a snapshot about it (because of that this is an answer, and not a comment)

enter image description here

  • Thanks, I fixed the blocks, any ideas on solving the actual problem? Commented Jan 17, 2015 at 14:22

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