Skip to content

gi-nx


gi-nx / createRawSection

ts
function createRawSection(feature: Feature<
  | Point
  | LineString
  | Polygon, Record<string, any> & {
  id?: never;
}>): string;

create a Point, LineString or Polygon geometry that will be saved on Giraffe and that users can edit. Returns the id assigned to the created section, or undefined if creation was rejected (eg. insufficient permissions). NB. rate limited - do not call this unless there is a corresponding user action

Parameters

ParameterType
featureFeature< | Point | LineString | Polygon, Record<string, any> & { id?: never; }>

Returns

string