1

I have two overlapping polygon layers and I'd like to display the labels from the bottom layer on top of both layers so they're easily visible. Is there a way to do this with CartoCSS? Some sort of z-index for the labels?

1 Answer 1

1

You could add the bottom layer again, on top of the top layer, and then make then change the polygon's opacity to 0:

polygon-opacity: 0;

Then configure the infowindows for the new top layer, and disable infowindows for the bottom two layers.

Hope that helps :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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