feat: show immediate administrative subdivisions and map coverage gaps

This commit is contained in:
2026-11-04 10:58:28 +02:00
parent 6dde36b5ca
commit bbc05f1df6
12 changed files with 399 additions and 26 deletions
@@ -18,7 +18,11 @@ export default function CatalogueInvestmentMap({
territoryId?: string;
mapKind?: InvestmentMapKind;
}) {
const { context, error } = useTerritoryGeometry(territoryId);
const { context, error } = useTerritoryGeometry(
territoryId,
undefined,
true,
);
return (
<InteractiveInvestmentMap
points={points}
@@ -54,14 +58,15 @@ export default function CatalogueInvestmentMap({
Sem limite administrativo acessível para o
território seleccionado.
{context.areas.length > 0
? ' Os limites de níveis superiores são apenas contexto e não representam a selecção.'
? ' Os limites disponíveis são contexto administrativo e não substituem o limite da selecção.'
: ''}
</p>
)}
{context?.truncated && (
<p role="alert">
Cobertura administrativa incompleta: são
apresentados até 100 limites.
consultadas até 100 geometrias e 500
subdivisões.
</p>
)}
</>