Class: Disable

ol.control. Disable


new Disable( [options])

A simple control to disable all actions on the map. The control will create an invisible div over the map.

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Properties
Name Type Description
class String

class of the control

html String

html code to insert in the control

on bool

the control is on

toggleFn function

callback when control is clicked

Extends

Methods


disableMap(b,)

Disable all action on the map

Parameters:
Name Type Description
b, bool

default false


isOn()

Test if the control is on

Returns:
Type
bool