Class: Gauge

ol.control. Gauge


new Gauge( [options])

A simple gauge control to display level information on the map.

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Properties
Name Type Description
className String

class of the control

title String

title of the control

max number

maximum value, default 100;

val number

the value, default 0

Extends

Methods


setTitle(title)

Set the control title

Parameters:
Name Type Description
title string

val(v)

Set/get the gauge value

Parameters:
Name Type Description
v number | undefined

the value or undefined to get it

Returns:

the value

Type
number