API REFERENCE

GeoMapGeometry

The GeoMapGeometry type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export type GeoMapGeometry = GeoMapGeometryMetadata & (
  | { type: 'Point'; coordinates: GeoMapPosition }
  | { type: 'MultiPoint' | 'LineString'; coordinates: GeoMapPosition[] }
  | { type: 'MultiLineString' | 'Polygon'; coordinates: GeoMapPosition[][] }
  | { type: 'MultiPolygon'; coordinates: GeoMapPosition[][][] }
  | { type: 'GeometryCollection'; geometries: Array<GeoMapGeometry | null> }
);