Home Reference Source
public class | source

Legend

This class represents the Map Legend. 15/03

Constructor Summary

Public Constructor
public

constructor(id: number, title: string)

Creates an instance of Legend class.

Member Summary

Public Members
public
public
public

lastdiv: *

public
public

table: *

public

Title of the Gisplay map Legend.

Method Summary

Public Methods
public

init(id: *, classname: *)

public

insertGradient(mapobj: *, left: *, middle: *, right: *)

public

insertLegend(map: *)

Appends the legend div element to the map container.

public

insertPointRow(currentaes: Aesthetic, mapobj: *)

Inserts one row for the Aesthetic object.

public

insertPolygonRow(currentaes: *, mapobj: *)

public

insertProportionalSymbols(currentaes: *, mapobj: *, numberof: *)

public

insertRow(currentaes: *, mapobj: *, type: *)

public

round(value: *, exp: *): *

Public Constructors

public constructor(id: number, title: string) source

Creates an instance of Legend class.

Params:

NameTypeAttributeDescription
id number

The id of the legend.

title string

The title for the legend.

Public Members

public className: string source

public firstInsertion: boolean source

public lastdiv: * source

public legendDiv: * source

public table: * source

public title: string source

Title of the Gisplay map Legend.

Public Methods

public init(id: *, classname: *) source

Params:

NameTypeAttributeDescription
id *
classname *

public insertGradient(mapobj: *, left: *, middle: *, right: *) source

Params:

NameTypeAttributeDescription
mapobj *
left *
middle *
right *

public insertLegend(map: *) source

Appends the legend div element to the map container.

Params:

NameTypeAttributeDescription
map *

public insertPointRow(currentaes: Aesthetic, mapobj: *) source

Inserts one row for the Aesthetic object.

Params:

NameTypeAttributeDescription
currentaes Aesthetic

The Aesthetic object

mapobj *

public insertPolygonRow(currentaes: *, mapobj: *) source

Params:

NameTypeAttributeDescription
currentaes *
mapobj *

public insertProportionalSymbols(currentaes: *, mapobj: *, numberof: *) source

Params:

NameTypeAttributeDescription
currentaes *
mapobj *
numberof *

public insertRow(currentaes: *, mapobj: *, type: *) source

Params:

NameTypeAttributeDescription
currentaes *
mapobj *
type *

public round(value: *, exp: *): * source

Params:

NameTypeAttributeDescription
value *
exp *

Return:

*