Open DerDakon opened 8 years ago
styledFeatures.sort(function (a, b) { return a.zIndex < b.zIndex ? -1 : a.zIndex > b.zIndex ? 1 : 0; });
does fix the z-index problems. I don't understand why it was comparing the fill-color and color keys?
This could have been written even simpler as return a.zIndex - b.zIndex
. But this does not solve the problem, as the sorting already works. It's the algorithm in which order things are drawn and how it interacts with "allow-overlap: true".
There are at least 2 z-index issues, which probably need a combined solution, so I report them in one issue: