XYZ Maps Documentation
    Preparing search index...

    Type Alias NavlinkSplitHook

    NavlinkSplitHook: (
        data: {
            children: [Navlink, Navlink];
            index: number;
            link: Navlink;
            relativePosition: number;
        },
    ) => void

    The NavlinkSplitHook is called whenever a Navlink is devided into two new Navlinks. ('Navlink.split' operation).

    Type Declaration

      • (
            data: {
                children: [Navlink, Navlink];
                index: number;
                link: Navlink;
                relativePosition: number;
            },
        ): void
      • Parameters

        • data: {
              children: [Navlink, Navlink];
              index: number;
              link: Navlink;
              relativePosition: number;
          }
          • children: [Navlink, Navlink]

            The two newly created Navlinks that are replacing the original Navlink.

          • index: number

            The index of the coordinate in which the split takes place and the new navlinks are connected to one another.

          • link: Navlink

            The Navlink that will be split.

          • relativePosition: number

            The relative position on the Navlink's geometry where the split happened. The range of values is from 0.0 to 1.0, where 0 represents the position on the first and 1 on the last coordinate.

        Returns void