Class: Gauge

ol.control. Gauge

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


new Gauge( [options])

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