mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-14 17:43:04 +00:00
Add BahiaMap surfaces on nuclei list, detail, and geral dashboard with server-side choropleth aggregation, lazy geometry loading (B5 F1), and roadmap plans for A7 F4, B5 F3, and B6 scale debts.
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import type { Feature, MultiPolygon, Polygon } from 'geojson'
|
|
import type { GeometryCollection, Topology } from 'topojson-specification'
|
|
|
|
export type BahiaMunicipalityProperties = {
|
|
codarea: string
|
|
name: string
|
|
}
|
|
|
|
export type BahiaTerritoryProperties = {
|
|
code: string
|
|
name: string
|
|
}
|
|
|
|
export type BahiaMunicipalityFeature = Feature<
|
|
Polygon | MultiPolygon,
|
|
BahiaMunicipalityProperties
|
|
>
|
|
|
|
export type BahiaTerritoryFeature = Feature<Polygon | MultiPolygon, BahiaTerritoryProperties>
|
|
|
|
export type MunicipalityTopology = Topology<{
|
|
municipalities: GeometryCollection<BahiaMunicipalityProperties>
|
|
}>
|
|
|
|
export type TerritoryTopology = Topology<{
|
|
territories: GeometryCollection<BahiaTerritoryProperties>
|
|
}>
|
|
|
|
export type MunicipalityGeometryModule = {
|
|
topology: MunicipalityTopology
|
|
features: readonly BahiaMunicipalityFeature[]
|
|
getMunicipalityFeature: (codarea: string) => BahiaMunicipalityFeature | undefined
|
|
}
|
|
|
|
export type TerritoryGeometryModule = {
|
|
topology: TerritoryTopology
|
|
features: readonly BahiaTerritoryFeature[]
|
|
getTerritoryFeature: (code: string) => BahiaTerritoryFeature | undefined
|
|
}
|