interface PointOptions {
    citeCompliant: boolean;
    control: Control;
    keyMask: number;
    multi: boolean;
    persist: boolean;
    pixelTolerance: number;
    stopDown: boolean;
    stopUp: boolean;
}

Hierarchy (View Summary)

Properties

citeCompliant: boolean

APIProperty: citeCompliant {Boolean} If set to true, coordinates of features drawn in a map extent crossing the date line won't exceed the world bounds. Default is false.

control: Control

APIProperty: control {<OpenLayers.Control>}. The control that initialized this handler. The control is assumed to have a valid map property - that map is used in the handler's own setMap method.

keyMask: number

APIProperty: keyMask {Integer} Use bitwise operators and one or more of the OpenLayers.Handler constants to construct a keyMask. The keyMask is used by . If the keyMask matches the combination of keys down on an event, checkModifiers returns true.

Example: (code) // handler only responds if the Shift key is down handler.keyMask = OpenLayers.Handler.MOD_SHIFT;

// handler only responds if Ctrl-Shift is down
handler.keyMask = OpenLayers.Handler.MOD_SHIFT |
                  OpenLayers.Handler.MOD_CTRL;

(end)

multi: boolean

APIProperty: multi {Boolean} Cast features to multi-part geometries before passing to the layer. Default is false.

persist: boolean

APIProperty: persist {Boolean} Leave the feature rendered until destroyFeature is called. Default is false. If set to true, the feature remains rendered until destroyFeature is called, typically by deactivating the handler or starting another drawing.

pixelTolerance: number

APIProperty: pixelTolerance {Number} Maximum number of pixels between down and up (mousedown and mouseup, or touchstart and touchend) for the handler to add a new point. If set to an integer value, if the displacement between down and up is great to this value no point will be added. Default value is 5.

stopDown: boolean

APIProperty: stopDown {Boolean} Stop event propagation on mousedown. Must be false to allow "pan while drawing". Defaults to false.

stopUp: boolean

APIPropery: stopUp {Boolean} Stop event propagation on mouse. Must be false to allow "pan while dragging". Defaults to fase.