Classes
Namespaces
Type Definitions
-
Callback(name, inputs, output)
-
Function that handles processing the output of the olturf controls.
Parameters:
Name Type Description namestring Name of control to process
inputsobject Inputs passed to the control's corresponding turf function
output* Output returned by the turf function
-
Handler
-
olturf custom callback handler.
Type:
- object
Properties:
Name Type Description callbackolturf.Callback Function to handle processing turf commands.
-
Options
-
olturf constructor options.
Type:
- object
Properties:
Name Type Argument Default Description controlsArray.<string> <optional>
olturf.toolbars.all List of names of control to enable.
handlerolturf.Handler <optional>
'undefined' Optional function that handles processing the output of the olturf controls. This is useful to bypass the default handler and provide custom processing of the results. The default handler adds features to the map or displays a message with any values returned by the turf function.
prefixstring <optional>
'olturf' Prefix to apply to control element IDs. Only needed to make IDs unique if multiple instances of an olturf toolbar are used on the same page.
stylestring <optional>
'olturf-toolbar' The name of the class to apply to the toolbar.