Home Reference Source
public class | source

GisplayOptions

This class will contain all the options available on the Gisplay API.

Constructor Summary

Public Constructor
public

constructor(userOptions: Object)

Creates a new Options object.

Member Summary

Public Members
public

Alpha to be used in WebGL.

public

The attribute to be mapped.

public

Class intervals.

public

Algorithm to be used by the API to calculate classes intervals.

public

Allows the user to choose the color scheme id to be used to choose from the list of defaults color shemes availabe on the Map to be created.

public

Array of colors to be used by the API.

public

If it is dynamic or not.

public
this member was deprecated. Not used ATM, should probably be used for Heat Maps.

Intensity of a heat map.

public

When we click on a feature that is on the map, show properties of said Feature or not.

public
this member was deprecated. Currently not in use. Maybe implement later.

Number of decimal numbers to show on the numerical values of the Legend.

public

Function to be called when the user clicks on a Legend class.

public
this member was deprecated. Currently not in use. Maybe implement later.

The user defined position of the Legend over the map.

public

The title to be used on the Legend.

public

Function to be called when the user clicks on the Map (on a Feature).

public

The maximum size of the points to be drawn on the Map.

public

The max number of features to be displayed.

public

If false each feature will have it's own WebGLBuffer, otherwise the geometry will be grouped creating one WebGLBuffer by Aesthetic class. As the name implies allows memory saving and with this improves performance in lower end devices. Only Available/Relevant to Dot Maps.

public

The minimum size of the points to be drawn on the Map.

public

Number of classes to be used on the map Legend.

public

The number of legend items.

public

Whether or not to show the map Legend.

public

Whether to show or not the loader when we the API is loading the needed data.

public

Properties and description to be shown when the user clicks on a Feature.

public

If the user wants to specify the size of the dots on a PSymbols Map using classes, this attribute should be true.

public

True when the user wants to use another background map service than those who are supported by default by the API.

Public Constructors

public constructor(userOptions: Object) source

Creates a new Options object. User options take precedence over default options.

Params:

NameTypeAttributeDescription
userOptions Object

The user defined options.

userOptions.attr string

The attribute to be mapped.

userOptions.colorScheme string[]
  • optional

The color scheme to be used.

userOptions.numberOfClasses number
  • optional

Number of classes to be used on the map Legend.

userOptions.classBreaksMethod string
  • optional
  • default: quantile

Algorithm to be used by the API to calculate classes intervals.

userOptions.classBreaks number[]
  • optional
  • default: undefined

Class intervals.

userOptions.interactive boolean
  • optional
  • default: true

Show pop-up when the user clicks on a Feature.

userOptions.showPropertiesOnClick boolean
  • optional
  • default: null

Show pop-up when the user clicks on a Feature.

userOptions.showLegend boolean
  • optional
  • default: true

Show map Legend.

userOptions.legendTitle string
  • optional
  • default: this.attr

Legend title for the Legend.

userOptions.showLoader boolean
  • optional
  • default: true

Show loader when loading data.

userOptions.useCustomMapService boolean
  • optional
  • default: false

Use custom map service.

userOptions.minPointSize number
  • optional
  • default: 1.0

Minimum point size.

userOptions.maxPointSize number
  • optional
  • default: 10.0

Maximum point size.

userOptions.sizeByClass boolean
  • optional
  • default: false

Specify the size of the dots on a PSymbols Map using classes.

userOptions.memorySaver boolean
  • optional
  • default: false

Save memory on Dot Maps.

userOptions.colorSchemeId boolean
  • optional
  • default: 1

The color scheme id to use.

userOptions.legendOnClickFunction Function
  • optional

Function to be called when the user clicks on a Legend class.

userOptions.mapOnClickFunction Function
  • optional

Function to be called when the user clicks on the Map (on a Feature).

userOptions.alpha number
  • optional
  • default: 0.8

Alpha to be used in WebGL.

userOptions.maxfeatures number
  • optional
  • default: Number.MAX_VALUE

The max number of features to be displayed.

userOptions.numberOfLegendItems number
  • optional
  • default: 2

The number of Legend items (Used on PSymbols Map).

Public Members

public alpha: number source

Alpha to be used in WebGL. 0 means fully transparent <-> 1 fully opaque.

public attr: string source

The attribute to be mapped.

public classBreaks: number[] source

Class intervals. If this is defined then numberOfClasses and classBreakMethod are ignored.

public classBreaksMethod: string source

Algorithm to be used by the API to calculate classes intervals. Available options are 'quantile', 'equidistant', 'k-means'.

public colorSchemeId: number source

Allows the user to choose the color scheme id to be used to choose from the list of defaults color shemes availabe on the Map to be created.

public colorscheme: string[] source

Array of colors to be used by the API.

public dynamic: boolean source

If it is dynamic or not. It's the inverse of the memorySaver value.

public intensity: number source

this member was deprecated. Not used ATM, should probably be used for Heat Maps.

Intensity of a heat map. Higher values of intensity means more red in the end color. Otherwise more green.

public interactive: boolean source

When we click on a feature that is on the map, show properties of said Feature or not.

public legendNumberFormat: number source

this member was deprecated. Currently not in use. Maybe implement later.

Number of decimal numbers to show on the numerical values of the Legend.

public legendOnClickFunction: Function source

Function to be called when the user clicks on a Legend class. This function should receive an object of type Aesthetic.

public legendPosition: string source

this member was deprecated. Currently not in use. Maybe implement later.

The user defined position of the Legend over the map. Allowed positions tl, tr, bl, br.

public legendTitle: string source

The title to be used on the Legend.

TODO:

  • The 3rd option will never be called so it's uselless this.minuend Because this.attr is obligatory.

public mapOnClickFunction: Function source

Function to be called when the user clicks on the Map (on a Feature). This function should receive an array, which are the Feature properties.

public maxPointSize: number source

The maximum size of the points to be drawn on the Map. Will be used on PSymbols. The dot with highest value on the features will have the size given by the user.

public maxfeatures: number source

The max number of features to be displayed. If not given by the user then it is the maximum numnber allowed. Number.MAX_VALUE = 1.79E+308

public memorySaver: boolean source

If false each feature will have it's own WebGLBuffer, otherwise the geometry will be grouped creating one WebGLBuffer by Aesthetic class. As the name implies allows memory saving and with this improves performance in lower end devices. Only Available/Relevant to Dot Maps.

public minPointSize: number source

The minimum size of the points to be drawn on the Map. Will be used on PSymbols and maybe on Dot Map/Heat Map.

public numberOfClasses: * source

Number of classes to be used on the map Legend. This option should be used when the user wants the API to calculate the classes (aka ranges) using the given number. Otherwise the API will calculate the appropriate number of classes to use. @type{number}

public numberOfLegendItems: number source

The number of legend items. Used for PSymbols Map.

public showLegend: boolean source

Whether or not to show the map Legend.

public showLoader: boolean source

Whether to show or not the loader when we the API is loading the needed data.

public showPropertiesOnClick: string[] source

Properties and description to be shown when the user clicks on a Feature.

TODO:

  • NOT USED?

public sizeByClass: boolean source

If the user wants to specify the size of the dots on a PSymbols Map using classes, this attribute should be true.

public useCustomMapService: boolean source

True when the user wants to use another background map service than those who are supported by default by the API. If this is true then the user should send the custom map service when creating the new Map.