Namespace: Util

BKGWebMap. Util

Source:

Members

<static> layerId :number

Counter for layer IDs
Source:

<static> layerId :number

Counter for layer IDs
Source:

Methods

<static> cssParser(cssString) → {object}

Generate object with css properties from a string
Parameters:
Name Type Description
cssString string String to parse
Source:
Returns:
Type
object

<static> cssParser(cssString) → {object}

Generate object with css properties from a string
Parameters:
Name Type Description
cssString string String to parse
Source:
Returns:
Type
object

<static> deepCopy(obj) → {object}

Creates a deep copy of an object
Parameters:
Name Type Description
obj object Object to copy
Source:
Returns:
Type
object

<static> deepCopy(obj) → {object}

Creates a deep copy of an object
Parameters:
Name Type Description
obj object Object to copy
Source:
Returns:
Type
object

<static> each(elements, method)

Iterates over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> each(elements, method)

Iterates over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> extend(obj1, obj2) → {object}

Extends an object using properties of a second object. Common properties will be overwritten.
Parameters:
Name Type Description
obj1 object Object to extend.
obj2 object Object to get new properties.
Source:
Returns:
Type
object

<static> extend(obj1, obj2) → {object}

Extends an object using properties of a second object. Common properties will be overwritten.
Parameters:
Name Type Description
obj1 object Object to extend.
obj2 object Object to get new properties.
Source:
Returns:
Type
object

<static> findGeometryType(features) → {object}

Find geometry type of features
Parameters:
Name Type Description
features array Array with OpenLayers features
Source:
Returns:
Type
object

<static> findGeometryType(features) → {object}

Find geometry type of features
Parameters:
Name Type Description
features array Array with OpenLayers features
Source:
Returns:
Type
object

<static> generateLayerId() → {string}

Generate ID for layers to use in permalink
Source:
Returns:
Type
string

<static> generateLayerId() → {string}

Generate ID for layers to use in permalink
Source:
Returns:
Type
string

<static> getLayerExtent(layer, projection) → {ol.Extent}

Returns the extent of the given layer. Depending on the layer type the access to the extent may vary.
Parameters:
Name Type Description
layer ol.layer.Layer the layer from which to retrieve the extent
projection ol.proj.Projection optional target projection for layer
Source:
Returns:
Type
ol.Extent

<static> getObjValueFromStringPath(obj, propertyPath) → {object}

Get a value from an object using a string path in dot notation
Parameters:
Name Type Description
obj object Object to search.
propertyPath string String path in dot notation.
Source:
Returns:
Type
object

<static> getObjValueFromStringPath(obj, propertyPath) → {object}

Get a value from an object using a string path in dot notation
Parameters:
Name Type Description
obj object Object to search.
propertyPath string String path in dot notation.
Source:
Returns:
Type
object

<static> getSessionToken(appID, appDomain, callback) → {function}

Generate a Session-Token for secure BKG services
Parameters:
Name Type Description
appID string
appDomain string
callback function Callback function
Source:
Returns:
Type
function

<static> getSessionToken(appID, appDomain, callback) → {function}

Generate a Session-Token for secure BKG services
Parameters:
Name Type Description
appID string
appDomain string
callback function Callback function
Source:
Returns:
Type
function

<static> hasNestedProperty(obj, propertyPath) → {boolean}

Checks if an object has a nested property
Parameters:
Name Type Description
obj object The object to test
propertyPath string Path of property. Syntax: 'prop1.prop2.prop3...'
Source:
Returns:
Type
boolean

<static> hasNestedProperty(obj, propertyPath) → {boolean}

Checks if an object has a nested property
Parameters:
Name Type Description
obj object The object to test
propertyPath string Path of property. Syntax: 'prop1.prop2.prop3...'
Source:
Returns:
Type
boolean

<static> map(method, elements) → {array}

Maps elements of array. It creates a new array with the results of calling a method for every array element. You can pass further static arguments to the method.
Parameters:
Name Type Description
method function Function to be run for each element in the array
elements array Array that this method is being applied to
Source:
Returns:
Type
array

<static> map(method, elements) → {array}

Maps elements of array. It creates a new array with the results of calling a method for every array element. You can pass further static arguments to the method.
Parameters:
Name Type Description
method function Function to be run for each element in the array
elements array Array that this method is being applied to
Source:
Returns:
Type
array

<static> reverseEach(elements, method)

Iterates reverse over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> reverseEach(elements, method)

Iterates reverse over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> shouldCreatePanel(controls) → {boolean}

Determine if we need to create a panel
Parameters:
Name Type Description
controls object Object with controls configuration
Source:
Returns:
Type
boolean

<static> shouldCreatePanel(controls) → {boolean}

Determine if we need to create a panel
Parameters:
Name Type Description
controls object Object with controls configuration
Source:
Returns:
Type
boolean

<static> uniqueId() → {string}

Generate a unique BKG WebMap ID that can be used in DOM elements
Source:
Returns:
Type
string

<static> uniqueId() → {string}

Generate a unique BKG WebMap ID that can be used in DOM elements
Source:
Returns:
Type
string

<static> xmlToJson(xml) → {object}

Converts XML to JSON format
Parameters:
Name Type Description
xml object XML as JavaScript object
Source:
Returns:
Type
object

<static> xmlToJson(xml) → {object}

Converts XML to JSON format
Parameters:
Name Type Description
xml object XML as JavaScript object
Source:
Returns:
Type
object

BKGWebMap. Util

Source:

Members

<static> layerId :number

Counter for layer IDs
Source:

<static> layerId :number

Counter for layer IDs
Source:

Methods

<static> cssParser(cssString) → {object}

Generate object with css properties from a string
Parameters:
Name Type Description
cssString string String to parse
Source:
Returns:
Type
object

<static> cssParser(cssString) → {object}

Generate object with css properties from a string
Parameters:
Name Type Description
cssString string String to parse
Source:
Returns:
Type
object

<static> deepCopy(obj) → {object}

Creates a deep copy of an object
Parameters:
Name Type Description
obj object Object to copy
Source:
Returns:
Type
object

<static> deepCopy(obj) → {object}

Creates a deep copy of an object
Parameters:
Name Type Description
obj object Object to copy
Source:
Returns:
Type
object

<static> each(elements, method)

Iterates over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> each(elements, method)

Iterates over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> extend(obj1, obj2) → {object}

Extends an object using properties of a second object. Common properties will be overwritten.
Parameters:
Name Type Description
obj1 object Object to extend.
obj2 object Object to get new properties.
Source:
Returns:
Type
object

<static> extend(obj1, obj2) → {object}

Extends an object using properties of a second object. Common properties will be overwritten.
Parameters:
Name Type Description
obj1 object Object to extend.
obj2 object Object to get new properties.
Source:
Returns:
Type
object

<static> findGeometryType(features) → {object}

Find geometry type of features
Parameters:
Name Type Description
features array Array with OpenLayers features
Source:
Returns:
Type
object

<static> findGeometryType(features) → {object}

Find geometry type of features
Parameters:
Name Type Description
features array Array with OpenLayers features
Source:
Returns:
Type
object

<static> generateLayerId() → {string}

Generate ID for layers to use in permalink
Source:
Returns:
Type
string

<static> generateLayerId() → {string}

Generate ID for layers to use in permalink
Source:
Returns:
Type
string

<static> getLayerExtent(layer, projection) → {ol.Extent}

Returns the extent of the given layer. Depending on the layer type the access to the extent may vary.
Parameters:
Name Type Description
layer ol.layer.Layer the layer from which to retrieve the extent
projection ol.proj.Projection optional target projection for layer
Source:
Returns:
Type
ol.Extent

<static> getObjValueFromStringPath(obj, propertyPath) → {object}

Get a value from an object using a string path in dot notation
Parameters:
Name Type Description
obj object Object to search.
propertyPath string String path in dot notation.
Source:
Returns:
Type
object

<static> getObjValueFromStringPath(obj, propertyPath) → {object}

Get a value from an object using a string path in dot notation
Parameters:
Name Type Description
obj object Object to search.
propertyPath string String path in dot notation.
Source:
Returns:
Type
object

<static> getSessionToken(appID, appDomain, callback) → {function}

Generate a Session-Token for secure BKG services
Parameters:
Name Type Description
appID string
appDomain string
callback function Callback function
Source:
Returns:
Type
function

<static> getSessionToken(appID, appDomain, callback) → {function}

Generate a Session-Token for secure BKG services
Parameters:
Name Type Description
appID string
appDomain string
callback function Callback function
Source:
Returns:
Type
function

<static> hasNestedProperty(obj, propertyPath) → {boolean}

Checks if an object has a nested property
Parameters:
Name Type Description
obj object The object to test
propertyPath string Path of property. Syntax: 'prop1.prop2.prop3...'
Source:
Returns:
Type
boolean

<static> hasNestedProperty(obj, propertyPath) → {boolean}

Checks if an object has a nested property
Parameters:
Name Type Description
obj object The object to test
propertyPath string Path of property. Syntax: 'prop1.prop2.prop3...'
Source:
Returns:
Type
boolean

<static> map(method, elements) → {array}

Maps elements of array. It creates a new array with the results of calling a method for every array element. You can pass further static arguments to the method.
Parameters:
Name Type Description
method function Function to be run for each element in the array
elements array Array that this method is being applied to
Source:
Returns:
Type
array

<static> map(method, elements) → {array}

Maps elements of array. It creates a new array with the results of calling a method for every array element. You can pass further static arguments to the method.
Parameters:
Name Type Description
method function Function to be run for each element in the array
elements array Array that this method is being applied to
Source:
Returns:
Type
array

<static> reverseEach(elements, method)

Iterates reverse over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> reverseEach(elements, method)

Iterates reverse over arrays
Parameters:
Name Type Description
elements array Array that this method is being applied to
method function Function to be executed for each element
Source:

<static> shouldCreatePanel(controls) → {boolean}

Determine if we need to create a panel
Parameters:
Name Type Description
controls object Object with controls configuration
Source:
Returns:
Type
boolean

<static> shouldCreatePanel(controls) → {boolean}

Determine if we need to create a panel
Parameters:
Name Type Description
controls object Object with controls configuration
Source:
Returns:
Type
boolean

<static> uniqueId() → {string}

Generate a unique BKG WebMap ID that can be used in DOM elements
Source:
Returns:
Type
string

<static> uniqueId() → {string}

Generate a unique BKG WebMap ID that can be used in DOM elements
Source:
Returns:
Type
string

<static> xmlToJson(xml) → {object}

Converts XML to JSON format
Parameters:
Name Type Description
xml object XML as JavaScript object
Source:
Returns:
Type
object

<static> xmlToJson(xml) → {object}

Converts XML to JSON format
Parameters:
Name Type Description
xml object XML as JavaScript object
Source:
Returns:
Type
object