zIndex fix

This commit is contained in:
Matthias Wirth
2021-05-04 13:26:53 +02:00
parent 0eddbc3c97
commit 6cf8dce4b3
2 changed files with 18 additions and 23 deletions

View File

@@ -4373,7 +4373,7 @@ function mapRefresh(redraw) {
// delete all feature objects so they are recreated, this is important
// draw order will be insertion / updateFeatures / updateTick order
addToMap.sort(function(x, y) { return x.altSort - y.altSort; });
addToMap.sort(function(x, y) { return x.zIndex - y.zIndex; });
//console.log('maprefresh(): ' + addToMap.length);
if (webgl) {
webglFeatures.clear();