mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-10-04 08:29:17 +02:00
Merge pull request #1046 from Wayland-Smithy/small-feature-prio
Make ObjectsList order small areas before overlapping larger ones on hover
This commit is contained in:
commit
0038245876
1 changed files with 3 additions and 1 deletions
|
@ -345,7 +345,9 @@ function initView(){
|
||||||
}
|
}
|
||||||
|
|
||||||
if(changed){
|
if(changed){
|
||||||
hovered = newHovered;
|
hovered = newHovered.sort(function(a, b){
|
||||||
|
return calcPolygonArea(a.path) - calcPolygonArea(b.path);
|
||||||
|
});
|
||||||
|
|
||||||
objectsContainer.innerHTML = "";
|
objectsContainer.innerHTML = "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue