Skip to content

spatial-monorepo


spatial-monorepo / editor/src / GeoReferencingWizardProps

Interface: GeoReferencingWizardProps

Defined in: packages/editor/src/GeoReferencingWizard.tsx:41

Properties

buildingId

buildingId: string

Defined in: packages/editor/src/GeoReferencingWizard.tsx:42


drawnOutline?

optional drawnOutline?: [number, number][][]

Defined in: packages/editor/src/GeoReferencingWizard.tsx:82

The polygon ring(s) produced by the parent's manual draw flow (see onDrawModeRequested). Once supplied, Step 2 shows an "Accept drawn outline" control for explicit user confirmation — nothing is ever committed automatically.


geocoderEndpoint?

optional geocoderEndpoint?: string

Defined in: packages/editor/src/GeoReferencingWizard.tsx:61

Geocoding endpoint base URL. Must return a Photon-compatible GeoJSON FeatureCollection for ?q=<query>&limit=5.

Default

ts
'https://photon.komoot.io/api/'

initialAlpha?

optional initialAlpha?: number

Defined in: packages/editor/src/GeoReferencingWizard.tsx:53

Restore persisted opacity value (0–1). Defaults to 1.


initialElevationInCm?

optional initialElevationInCm?: number

Defined in: packages/editor/src/GeoReferencingWizard.tsx:55

Restore persisted floor elevation in cm. Defaults to 0.


mapCenter?

optional mapCenter?: [number, number]

Defined in: packages/editor/src/GeoReferencingWizard.tsx:68

The map's current center [lng, lat], supplied by the parent (e.g. from map.getCenter()). The wizard has no direct map access, so "Use current map center" reads this value rather than fabricating a location. When omitted, the button is not rendered.


onCancel?

optional onCancel?: () => void

Defined in: packages/editor/src/GeoReferencingWizard.tsx:49

Returns

void


onComplete

onComplete: (result) => void

Defined in: packages/editor/src/GeoReferencingWizard.tsx:43

Parameters

result
alpha

number

elevationInCm

number

floorPlanImage

Blob | null

homography

number[]

Returns

void


onDrawModeRequested?

optional onDrawModeRequested?: () => void

Defined in: packages/editor/src/GeoReferencingWizard.tsx:75

Called when the user clicks "Draw manually" in Step 2. The parent should activate its polygon draw mode (e.g. TerraDrawPolygonMode) and, once the user finishes drawing, pass the resulting ring(s) back via drawnOutline. When omitted, the "Draw manually" button is disabled.

Returns

void


onFlyTo?

optional onFlyTo?: (lng, lat, zoom?) => void

Defined in: packages/editor/src/GeoReferencingWizard.tsx:51

Called when user confirms a location so the parent can flyTo it on the map.

Parameters

lng

number

lat

number

zoom?

number

Returns

void

Released under commercial licensing.