CREATE COMPONENT CLASS

A class which is used to instantiate all components.

Static Members
▸ create_components
▸ create_component

DRAWING COMPOSABLE METHODS

Methods for components that need to draw on the map.

Static Members
▸ query_admin_layer

BASE COMPONENT

A base component class all other components extend.

Static Members
▸ detect_changes

BOOKMARKER TOOL COMPONENT

A tool for saving the state of the application to recreate later for personal use or send to others.

Static Members
▸ bookmark
▸ get_bookmark_without_alert
▸ load
▸ execute
▸ parse

LEGEND TOOL COMPONENT

Static Members
▸ update_feature_map_layers
▸ update_feature_map_layers
▸ move_layer_down
▸ move_layer_up
▸ remove_layer
▸ make_layers_sortable

IDENTIFY AND CALCULATE TOOL COMPONENT

A tool for identifying values at specific points or areas on the map.

IDENTIFY AND CALCULATE TOOL COMPONENT

A tool for identifying values at specific points or areas on the map.

COMMON MODULE

A set of vanilla JS helper functions for basic tasks.

Static Members
▸ distance
▸ merge_horizontal_lines
▸ point_in_quadrilateral
▸ slope
▸ convert_esri_polygon_to_geojson
▸ convert_to_form_data
▸ document_is_ready
▸ within
▸ get_extent_from_esri_geometry

MICROSERVICES MODULE

A set of helper functions which use core GADAS libraries like ESRI's JS API.

Static Members
▸ shard
▸ nonDojoShard

START FILE

Initialization logic for GADAS.

Static Members
▸ load_gadas
▸ load_map_elements
▸ load_compare_map_elements
▸ load_default_layers
▸ load_google_analytics
▸ initialize_if_ready

jsPDF.addImage

Finally found a tutorial that explains jsPDF addImage parameters, because there's nothing about addImage at all in the official documentation. Tutorial here: http://findnerd.com/list/view/Adding-Image-to-PDF-Using-JSPDF/28818/ Official jsPDF documentation: https://rawgit.com/MrRio/jsPDF/master/docs/index.html

jsPDF.addImage
Parameters
imageData (any) : image itself
format (any) : file extension of image
xAxis (any) : position of image from left
yAxis (any) : position of image from top
width (any) : width of image
height (any) : height of image
alias (any) : image alias
Example
doc.addImage(imgData, 'image format', x, y, w, h, 'alias');

changeStyle

The changeStyle function is the first step for a layer to have its style changed. It updates the layer style configuration, then iterates through bundled sublayers to change all of them consistently, then passes some logic to layer-type specific functions for logic pertaining specifically to lines, dots, polygons, etc. Then those in turn invoke the finalizeStyleChange() function.

changeStyle(configObject: object, styleOption: string, optionType: string)
Parameters
configObject (object) a configuration object holding current style values for the layer or layer bundle
styleOption (string) a string regarding the specific value the style should be changed to
optionType (string) a string regarding the type of style being changed, such as font size or line color

isValue

isValue(x: any): Boolean
Parameters
x (any)
Returns
Boolean: true if the specified value is not null and not undefined.

isValue

isValue(x: any): Boolean
Parameters
x (any)
Returns
Boolean: true if the specified value is not null and not undefined.

floorMod

floorMod(a: any, n: any): Number
Parameters
a (any)
n (any)
Returns
Number: returns remainder of floored division, i.e., floor(a / n). Useful for consistent modulo of negative numbers. See http://en.wikipedia.org/wiki/Modulo_operation .

floorMod

floorMod(a: any, n: any): Number
Parameters
a (any)
n (any)
Returns
Number: returns remainder of floored division, i.e., floor(a / n). Useful for consistent modulo of negative numbers. See http://en.wikipedia.org/wiki/Modulo_operation .

clamp

clamp(x: any, range: any): Number
Parameters
x (any)
range (any)
Returns
Number: the value x clamped to the range [low, high] .

clamp

clamp(x: any, range: any): Number
Parameters
x (any)
range (any)
Returns
Number: the value x clamped to the range [low, high] .

isMobile

isMobile(): Boolean
Returns
Boolean: true if agent is probably a mobile device. Don't really care if this is accurate.

isMobile

isMobile(): Boolean
Returns
Boolean: true if agent is probably a mobile device. Don't really care if this is accurate.

distort

Calculate distortion of the wind vector caused by the shape of the projection at point (x, y). The wind vector is modified in place and returned by this function.

distort(projection: any, λ: any, φ: any, x: any, y: any, scale: any, wind: any, heaty: any)
Parameters
projection (any)
λ (any)
φ (any)
x (any)
y (any)
scale (any)
wind (any)
heaty (any)

distort

Calculate distortion of the wind vector caused by the shape of the projection at point (x, y). The wind vector is modified in place and returned by this function.

distort(projection: any, λ: any, φ: any, x: any, y: any, scale: any, wind: any, windy: any)
Parameters
projection (any)
λ (any)
φ (any)
x (any)
y (any)
scale (any)
wind (any)
windy (any)

field

field(x: any, y: any): Array
Parameters
x (any)
y (any)
Returns
Array: wind vector [u, v, magnitude] at the point (x, y), or [NaN, NaN, null] if wind is undefined at that point.

field

field(x: any, y: any): Array
Parameters
x (any)
y (any)
Returns
Array: wind vector [u, v, magnitude] at the point (x, y), or [NaN, NaN, null] if wind is undefined at that point.

Windy

Global class for simulating the movement of particle through a 1km wind grid credit: All the credit for this work goes to: https://github.com/cambecc for creating the repo: https://github.com/cambecc/earth. The majority of this code is directly take nfrom there, since its awesome. This class takes a canvas element and an array of data (1km GFS from http://www.emc.ncep.noaa.gov/index.php?branch=GFS) and then uses a mercator (forward/reverse) projection to correctly map wind vectors in "map space". The "start" method takes the bounds of the map at its current extent and starts the whole gridding, interpolation and animation process.

Windy
Parameters
Params (any) a canvas element and an array of data