mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
Fold duplicate coverage tests into their neighbours
This commit is contained in:
1 parent
5c4918affb
commit
ea76fc4bc0
9 files changed
+94
-328
No files matched your search
@@ -243,11 +243,9 @@ export function createViewport({ state: layerState, services, parts, source }) {
|
||||
nextActive.size !== layerState._activeCityIds.size ||
|
||||
[...nextActive].some((cityId) => !layerState._activeCityIds.has(cityId));
|
||||
layerState._activeCityIds = nextActive;
|
||||
if (layerState._activeCityIds.size === 0) {
|
||||
if (nextActive.size === 0) {
|
||||
layerState._count = 0;
|
||||
layerState._lastUpdate = null;
|
||||
if (changed) refreshRow();
|
||||
return;
|
||||
}
|
||||
if (changed) refreshRow();
|
||||
|
||||
|
||||
Reference in new issue
Block a user