Function startCreateFeatureSession

  • Creates an editor session to create features of the given geometry type. While the session is active: Do not change the geometry on the current feature (the last created one) and do not change crucial olcs properties on the feature or the layer (olcs_altitudeMode)

    Type Parameters

    Parameters

    • app: VcsApp
    • layer: VectorLayer
    • geometryType: T
    • OptionalinitialAltitudeMode: AltitudeModeType

      whether to use the layers altitude mode or set this on the feature

    • OptionalinitialSnapToLayers: VectorLayer[] = ...

      the layers to initially snap to. defaults to the provided layer

    • OptionalsnapTo: (
          | "orthogonal"
          | "parallel"
          | "vertex"
          | "edge")[] = ...

      what to snap to, by default all snaps are active

    Returns CreateFeatureSession<T>