Here is my full CodePen as well.. Any way to do this client side javascript-side JavaScript? simplySimply change index to smallest polygons on top?! 1/3 times some of my polygons render in the correct order.. but. But I need to ensure they all always do, so they are visible and I can click them.