mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-15 18:53:06 +00:00
20 lines
612 B
TypeScript
20 lines
612 B
TypeScript
import type {
|
|
BahiaTerritoryFeature,
|
|
TerritoryGeometryModule,
|
|
TerritoryTopology,
|
|
} from '@/lib/bahiaGeometriesTypes'
|
|
import { buildGeometryModuleFromTopology } from '@/lib/bahiaGeometryModuleFactory'
|
|
import territoryTopologyJson from '@/lib/geometries/bahia-identity-territories.topo.json'
|
|
|
|
const { topology, features } = buildGeometryModuleFromTopology<
|
|
BahiaTerritoryFeature['properties'],
|
|
'territories'
|
|
>({
|
|
topology: territoryTopologyJson as unknown as TerritoryTopology,
|
|
objectName: 'territories',
|
|
})
|
|
|
|
export const territoryGeometryModule: TerritoryGeometryModule = {
|
|
topology,
|
|
features,
|
|
}
|