Class: RadioMasterportalAPI

RemoteInterface RadioMasterportalAPI

RadioMasterportalAPI

Extends

Methods

staticRadioMasterportalAPI.getDisplayNamesOfFeatureAttributes(layerId, featureAttribute){object|string}

modules/remoteInterface/radioMasterportalAPI.js, line 131
Returns display names map for a layer, or display name for a specific attribute.
Name Type Description
layerId string if of layer to fetch display names for
featureAttribute string optional if given, only one entry of map is returned
Returns:
map of originalName->displayName or name of featureAttribute if specified; if layer or featureAttribute not found, null

staticRadioMasterportalAPI.getLayerAttributesWhere(searchAttributes){object}

modules/remoteInterface/radioMasterportalAPI.js, line 107
Returns the first entry in layerList matching the given searchAttributes.
Name Type Description
searchAttributes object key/value-pairs to be searched for, e.g. { typ: "WMS" } to get the first WMS
Returns:
layer matching the searchAttributes or null if none was found

staticRadioMasterportalAPI.getLayerList(){Array.<object>}

modules/remoteInterface/radioMasterportalAPI.js, line 121
Returns:
layerList as initialized

staticRadioMasterportalAPI.getLayerListWhere(searchAttributes){Array.<Backbone.Model>}

modules/remoteInterface/radioMasterportalAPI.js, line 116
Returns an array of all models that match the given attributes.
Name Type Description
searchAttributes Object key/value-pairs to be searched for, e.g. { typ: "WMS" } to get the first WMS
Returns:
List of the models

staticRadioMasterportalAPI.getLayerWhere(searchAttributes){object}

modules/remoteInterface/radioMasterportalAPI.js, line 98
Returns the first entry in layerList matching the given searchAttributes.
Name Type Description
searchAttributes object key/value-pairs to be searched for, e.g. { typ: "WMS" } to get the first WMS
Returns:
layer matching the searchAttributes or null if none was found

staticRadioMasterportalAPI.getProjection(name){object|undefined}

modules/remoteInterface/radioMasterportalAPI.js, line 48
Returns the proj4 projection definition for a registered name.
Name Type Description
name string projection name as written in [0] position of namedProjections
Returns:
projection object or undefined

staticRadioMasterportalAPI.getProjections(){Array.<object>}

modules/remoteInterface/radioMasterportalAPI.js, line 56
Returns all known projections.
Returns:
of projection objects with their name added

staticRadioMasterportalAPI.transform(sourceProjection, targetProjection, point){Array.<number>|undefined}

modules/remoteInterface/radioMasterportalAPI.js, line 89
Transforms a given point from a source to a target projection.
Name Type Description
sourceProjection string | object projection name or projection of point
targetProjection string | object projection name or projection to project point to
point Array.<number> point to project
Returns:
point

staticRadioMasterportalAPI.transformFromMapProjection(map, targetProjection, point){Array.<number>|undefined}

modules/remoteInterface/radioMasterportalAPI.js, line 78
Projects a point from the given map.
Name Type Description
map ol.Map map to project from, and point must be in map's projection
targetProjection string | object projection name or projection to project to
point Array.<number> point to project
Returns:
point or undefined

staticRadioMasterportalAPI.transformToMapProjection(map, sourceProjection, point){Array.<number>|undefined}

modules/remoteInterface/radioMasterportalAPI.js, line 67
Projects a point to the given map.
Name Type Description
map ol.Map map to project to
sourceProjection string | object projection name or projection of point
point Array.<number> point to project
Returns:
point or undefined