An object literal containing instructions for repeating labels along a path (for example, the path of a line or the outside path of a polygon).

Hierarchy

  • OnPathLabelRepeatOptions

Properties

initialGap?: number

Describes the distance in pixels between the beginning of the path and the label. When you zoom in much onto a path then the initialGap defines how far away the first label will be drawn relative to the start of the rendering line. The initialGap defaults to the value for minimumGap.

minimumGap?: number

Defines the minimum gap in pixels between two labels on the same path.

The default value is 200 (pixels).