Members
_bumpyTerrainProvider
- Source:
A terrain provider used when ViewerMode === ViewerMode.CesiumTerrain
_terrain
- Source:
The terrain provider currently being used - can be either a bumpy terrain provider or a smooth EllipsoidTerrainProvider
activeTimeColumnNameIdOrIndex :String|Integer|Array.<String>|Array.<Integer>|undefined
- Source:
Gets or sets the active time column name, id or index. If you pass an array of two such, eg. [0, 1], treats these as the start and end date column identifiers.
Type:
- String | Integer | Array.<String> | Array.<Integer> | undefined
allFeaturesAvailablePromise :Promise
- Source:
Gets or sets a promise that indicates, when it resolves, that all picked features are available in the {@see PickedFeatures#features} array.
Type:
- Promise
allShareKeys
- Source:
All keys that have historically been used to resolve this member - the current uniqueId + past shareKeys.
barHeightMax :Number
- Source:
- Default Value:
- 130
Gets or sets the maximum height of the whole color bar, unless very many items.
Type:
- Number
barHeightMin :Number
- Source:
- Default Value:
- 30
Gets or sets the minimum height of the whole color bar.
Type:
- Number
barLeft :Number
- Source:
- Default Value:
- 5
Gets or sets the spacing to the left of the color bar.
Type:
- Number
barTop :Number
- Source:
- Default Value:
- 5
Gets or sets the spacing between the title and color bar.
Type:
- Number
categoryName :String
- Source:
Name of the category for this set of points., eg. the source catalog item.
Type:
- String
color :String
- Source:
CSS color code for this set of points.
Type:
- String
computeScreenSpacePosition :SelectionIndicatorViewModel~ComputeScreenSpacePosition
- Source:
- Default Value:
- SceneTransforms.wgs84ToWindowCoordinates
Gets or sets the function for converting the world position of the object to the screen space position.
Type:
- SelectionIndicatorViewModel~ComputeScreenSpacePosition
Example
selectionIndicatorViewModel.computeScreenSpacePosition = function(position, result) {
return Cesium.SceneTransforms.wgs84ToWindowCoordinates(scene, position, result);
};
config :Object
- Source:
Contains configuration information retrieved from the server. The attributes are defined by TerriaJS-Server but include: version: current version of server proxyAllDomains: whether all domains can be proxied allowProxyFrom: array of domains that can be proxied maxConversionSize: maximum size, in bytes, of files that can be uploaded to conversion service newShareUrlPrefix: if defined, the share URL service is active shareUrlPrefixes: object defining share URL prefixes that can be resolved additionalFeedbackParameters: array of additional feedback parameters that can be used
Type:
- Object
cssClass :String
- Source:
Gets or sets the CSS class that will be applied to the legend when it is displayed. This is used to ensure that the correct font is used when measuring text for word wrapping.
Type:
- String
(constant) CustomComponents
A store of registered custom component types, eg.
(constant) Description
- Source:
CatalogItem description.
direction :Cartesian3
- Source:
Gets the look direction of the camera in the Earth-centered Fixed frame.
Type:
- Cartesian3
error :String
- Source:
Gets or sets a message describing an error that occurred while picking features. If this property is undefined, no error occurred.
Type:
- String
extent :Rectangle
- Source:
Gets a Rectangle covering the extent of the data, based on lat & lon columns. (It could be based on regions too eventually.)
Type:
- Rectangle
extent :Rectangle
- Source:
Gets a Rectangle covering the extent of the data, based on lat & lon columns. (It could be based on regions too eventually.)
Type:
- Rectangle
featureClicked :CesiumEvent
- Source:
Gets or sets an event that is raised when a feature is clicked on the Leaflet map.
Type:
- CesiumEvent
featureMousedown :CesiumEvent
- Source:
Gets or sets an event that is raised when a mousedown event occurs on the Leaflet map.
Type:
- CesiumEvent
features :Array.<Entity>
- Source:
Gets or sets the array of picked features. The array is observable and may be updated up until the point that {@see PickedFeatures#allFeaturesAvailablePromise} resolves.
Type:
- Array.<Entity>
gradientColorMap :ColorMap
- Source:
Gets or sets a color map used to draw a smooth gradient instead of discrete color boxes.
Type:
hasAddress :Boolean
- Source:
Gets a flag which states whether this data has address data.
Type:
- Boolean
hasChildren :Boolean
- Source:
Gets a value indicating whether this item has child items.
Type:
- Boolean
hasChildren :Boolean
- Source:
Gets a value indicating whether this item has child items.
Type:
- Boolean
hasChildren :Boolean
- Source:
Gets a value indicating whether this item has child items. If your subclass can return true, it must also define isOpen & items properties, and a toggleOpen function.
Type:
- Boolean
hasChildren :Boolean
- Source:
Gets a value indicating whether this item has child items.
Type:
- Boolean
hasLatitudeAndLongitude :Boolean
- Source:
Gets a flag which states whether this data has latitude and longitude data.
Type:
- Boolean
id :String
- Source:
Unique id for this set of points.
Type:
- String
infoWithoutSources
- Source:
A filtered view of CatalogMember#info
that excludes info items that divulge details about the data's
source, as determined by CatalogMember#__sourceInfoItemNames
.
isLoading :Boolean
- Source:
Gets or sets a value indicating whether the list of picked features is still loading.
Type:
- Boolean
isVisible :Boolean
- Source:
Gets the visibility of the position indicator. This can be false even if an object is selected, when the selected object has no position.
Type:
- Boolean
itemHeight :Number
- Source:
- Default Value:
- the smaller of `props.barHeightMax / props.items.length` and 30.
Gets or sets the forced height of each color box. Better to leave unset.
Type:
- Number
itemHeightMin :Number
- Source:
- Default Value:
- 12
Gets or sets the asbolute minimum height of each color box, overruling barHeightMax.
Type:
- Number
items :Array.<Object>
- Source:
Gets or sets the list of items, ordered from bottom to top, with properties:
color
: CSS color description,lineColor
: CSS color description,multipleColors
: An array of CSS color descriptions. A grid of these colors will be displayed in the box to the left of the item label.title
: label placed level with middle of boxtitleAbove
: label placed level with top of boxtitleBelow
: label placed level with bottom of boximageUrl
: url of image that will be drawn instead of a coloured boximageWidth
,imageHeight
: image dimensionsspacingAbove
: adds to itemSpacing for this item only.
Type:
- Array.<Object>
items :Array.<CatalogItem>
- Source:
Gets the list of items that we are "now viewing". It is recommended that you use the methods on this instance instead of manipulating the list of items directly. This property is observable.
Type:
- Array.<CatalogItem>
itemSpacing :Number
- Source:
- Default Value:
- 0
Gets or sets the gap between each pair of color boxes.
Type:
- Number
itemWidth :Number
- Source:
- Default Value:
- 30
Gets or sets the width of each color box (and hence, the color bar)
Type:
- Number
legendUrl :String
- Source:
Gets a URL for the legend for this data.
Type:
- String
legendUrl :String
- Source:
Gets a URL for the legend for this data.
Type:
- String
map :L.map
- Source:
Gets or sets the Leaflet map.
Type:
- L.map
name :String
- Source:
Name for this set of points.
Type:
- String
onClick :function
- Source:
Click handler (called with (x, y) in data units) if some special behaviour is required on clicking.
Type:
- function
pickPosition :Cartesian3
- Source:
Gets or sets the ground position that was picked, if any.
Type:
- Cartesian3
point :Object
- Source:
A selected point from the array above. Used internally by charting functions for hover/clicking functionality.
Type:
- Object
points :Array.<Object>
- Source:
The array of points. Each point should have the format {x: X, y: Y}.
Type:
- Array.<Object>
position :Cartesian3
- Source:
Gets or sets the world position of the object for which to display the selection indicator.
Type:
- Cartesian3
position :Cartesian3
- Source:
Gets the position of the camera in the Earth-centered Fixed frame.
Type:
- Cartesian3
prevBoundsType
- Source:
A variable to store what sort of bounds our leaflet map has been looking at 0 = a normal extent 1 = zoomed in close to the east/left of anti-meridian 2 = zoomed in close to the west/right of the anti-meridian When this value changes we'll need to recompute the location of our points to help them wrap around the anti-meridian
Proj4Definitions :Object
- Source:
Defines the built-in proj4 projection definitions known to TerriaJS. Additional projections can be added to this object literal.
Type:
- Object
rectangle :Rectangle
- Source:
Gets the rectangular extent of the view. If CameraView#position
, CameraView#direction
,
and CameraView#up
are specified, this property will be ignored for viewers that support those parameters
(e.g. Cesium). This property must always be supplied, however, for the benefit of viewers that do not understand
these parameters (e.g. Leaflet).
Type:
- Rectangle
regionDetails :Array.<Object>
- Source:
Once loaded, gets the region details (an array of "regionDetail" objects, with regionProvider, columnName and disambigColumnName properties). By checking if defined, can be used as the region-mapping equivalent to "hasLatitudeAndLongitude".
Type:
- Array.<Object>
selectedIndex :Integer
- Source:
The selected index which you might somehow highlight on your chart
Type:
- Integer
shareKeyIndex :Object
- Source:
A flat index of all catalog member in this catalog by their share keys. Because items can have multiple share keys to preserve backwards compatibility, multiple entries in this index will lead to the same catalog member.
Type:
- Object
showAll :Boolean
- Source:
- Default Value:
- true
Request that the chart be scaled so that this series can be shown entirely.
Type:
- Boolean
showSelection :Boolean
- Source:
Gets or sets the visibility of the selection indicator.
Type:
- Boolean
supportsIntervals :Boolean
Gets a value indicating whether this ImageryLayerCatalogItem
supports the ImageryLayerCatalogItem#intervals
property for configuring time-dynamic imagery.
Type:
- Boolean
supportsIntervals :Boolean
Gets a value indicating whether this ImageryLayerCatalogItem
supports the ImageryLayerCatalogItem#intervals
property for configuring time-dynamic imagery.
Type:
- Boolean
supportsIntervals :Boolean
Gets a value indicating whether this ImageryLayerCatalogItem
supports the ImageryLayerCatalogItem#intervals
property for configuring time-dynamic imagery.
Type:
- Boolean
(constant) Title
- Source:
Handles the drawing of the chart title, which may be a string or a legend.
(constant) Tooltip
- Source:
Handles the drawing of the chart tooltip, which shows the values of the selected data in a legend.
type :String
- Source:
Chart type. If you want these points to be rendered with a certain way. Leave empty for auto detection.
Type:
- String
units :String
- Source:
Units of this set of points.
Type:
- String
up :Cartesian3
- Source:
Gets the up vector direction of the camera in the Earth-centered Fixed frame.
Type:
- Cartesian3
variableNameLeft :Number
- Source:
- Default Value:
- 5
Gets or sets the horizontal offset of variable title.
Type:
- Number
variableNameTop :Number
- Source:
- Default Value:
- 17
Gets or sets the vertical offset of variable title.
Type:
- Number
ViewerMode
- Source:
Identifies the map viewer mode to use.
width :Number
- Source:
- Default Value:
- 310
Gets or sets the forced total width of the legend.
Type:
- Number
yAxisMax :String
- Source:
Maximum value for y axis to display, overriding maximum value in data.
Type:
- String
yAxisMin :String
- Source:
Minimum value for y axis to display, overriding minimum value in data.
Type:
- String
Methods
addBoundingBox(requestData, rectangle)
- Source:
Adds a bounding box filter to the search query for elastic search. This simply modifies requestData and returns nothing.
Parameters:
Name | Type | Description |
---|---|---|
requestData |
object | Request data to modify |
rectangle |
Rectangle | rectangle to source the bounding box from. |
addMarker()
- Source:
Adds a location marker to the map with the position supplied in the result, adding a data source to terria if one hasn't already been added, and removing all previously added markers in that data source. This data source is stored in terria.locationMarker.
addUserCatalogMember(terria, newCatalogItemOrPromise, optionsopt) → {Promise}
- Source:
Adds a user's catalog item or group to the catalog.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
terria |
Terria | The Terria instance to contain the catalog member. |
|||||||||||||||||||||
newCatalogItemOrPromise |
CatalogItem | Promise | The catalog member to add, or a promise for a catalog member. |
|||||||||||||||||||||
options |
Object |
<optional> |
An object with the following members: Properties
|
Returns:
A promise that resolves to the catalog item when loaded successfully, or to a TerriaError
if loading fails. The TerriaError
is reported
by raising Terria#error
prior to resolving. The promise never rejects.
- Type
- Promise
animateTimer(radius, interval, elapsedTimeElement, backgroundElement)
Runs the timer animation, making an arc fill from 0 to 100% of the circle.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
radius |
number | Radius of timer. |
||
interval |
number | Timer duration in seconds. |
||
elapsedTimeElement |
DOMElement | SVG path containing the elapsed time "pie". |
||
backgroundElement |
DOMElement | SVG path containing the background circle. |
||
options.deltaOpacity |
number |
<optional> |
0.5
|
Change in opacity when fading in and out timer. |
options.opacityAnimationInterval |
number |
<optional> |
3
|
How long fade in/out lasts in seconds. |
options.minOpacity |
number |
<optional> |
0.1
|
When fading out, doesn't let opacity go below |
options.elapsed |
number |
<optional> |
0
|
How much time has already passed. |
arcFactory(radius)
Returns a function that returns a string representing the svg path of an arc.
Parameters:
Name | Type | Description |
---|---|---|
radius |
number |
arrayProduct(pools) → {Array.<Array>}
- Source:
Find the "product" of a set of arrays, equivalent to the python one-liner: list(itertools.product(*pools)). Eg. [[a,b,c], [d], [e,f]] => [[a,d,e], [a,d,f], [b,d,e], [b,d,f], [c,d,e], [c,d,f]].
Parameters:
Name | Type | Description |
---|---|---|
pools |
Array.<Array> | The arrays of arrays. |
Returns:
The product of the arrays.
- Type
- Array.<Array>
buildEmptyAccumulator()
Builds an empty accumulator object - each location for custom elements will have an empty array in the return object
buildRequestData(searchTerm, maxResults)
- Source:
Builds the data to be POSTed to elastic search.
Parameters:
Name | Type | Description |
---|---|---|
searchTerm |
string | The plain-text query to search for. |
maxResults |
number | The max number of results to search for. |
buildShareLink(terria, viewStateopt, optionsopt) → {String}
Builds a share link that reflects the state of the passed Terria instance.
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
terria |
The terria instance to serialize. |
||||||||||||
viewState |
ViewState |
<optional> |
The viewState to read whether we're viewing the catalog or not |
||||||||||
options |
Object |
<optional> |
Options for building the share link. Properties
|
Returns:
A URI that will rebuild the current state when viewed in a browser.
- Type
- String
buildShortShareLink() → {Promise.<String>}
Like buildShareLink
, but shortens the result using Terria#urlShortener
.
Returns:
A promise that will return the shortened url when complete.
- Type
- Promise.<String>
calculateFinishDatesFromStartDates(startJulianDates, localDefaultFinalDurationSecondsopt, shaveSecondsopt, finalEndJulianDateopt) → {Array.<JulianDate>}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
startJulianDates |
Array.<JulianDate> | An array of start dates. |
|
localDefaultFinalDurationSeconds |
Number |
<optional> |
The duration to use if there is only one date in the list. Defaults to defaultFinalDurationSeconds. |
shaveSeconds |
Number |
<optional> |
Subtract this many seconds from the end dates so they don't overlap (defaults to zero). If duration < 20 * shaveSeconds, use 5% of duration. |
finalEndJulianDate |
JulianDate |
<optional> |
If present, use this for the final end date. |
Returns:
An array of end dates which correspond to the array of start dates.
- Type
- Array.<JulianDate>
canShorten(terria) → {Boolean}
Is it currently possible to generate short URLs?
Parameters:
Name | Type | Description |
---|---|---|
terria |
Object | The Terria object. |
Returns:
- Type
- Boolean
ChartData(pointsopt, parametersopt)
- Source:
A container to pass data to a d3 chart: a single series of data points.
For documentation on the custom
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
points |
Array.<Object> |
<optional> |
The array of points. Each point should have the format {x: X, y: Y}. Defaults to []. |
||||||||||||||||||||||||||||||||||||||||||||
parameters |
Object |
<optional> |
Further parameters. Properties
|
ColorMap(param)
- Source:
A one-dimensional scale of colours used to visually represent a numerical value. Implemented as an Array of {color, offset} objects, where the first object has an offset of 0, the last has an offset of 1, and the others are ordered in between. It can be instantiated directly from three formats:
- String, eg. 'red-black'
- Array of strings, eg. ['red', 'black']
- Array of objects with the properties 'color' and 'offset', eg. [{color: 'red', offset: 0}, ...].
Parameters:
Name | Type | Description |
---|---|---|
param |
String | Array.<String> | Array.<Object> |
combineData(array) → {Array.<Number>|Array.<Date>}
- Source:
Combines two data arrays, each with the format [[x1, y1], [x2, y2], ...] maintaining the order of the x's. The x and y can be anything with order (integers, floats, dates, etc)
Parameters:
Name | Type | Description |
---|---|---|
array |
Array | Array of arrays, eg. [[[x1, y1], [x2, y2]], [[a1, b1], [a2, b2]]] |
Returns:
Combined array.
- Type
- Array.<Number> | Array.<Date>
combineFilters(filters) → {function}
- Source:
Combines a number of functions that return a boolean into a single function that executes all of them and returns true only if all them do. Maintains an set of filter functions, so if the same function is combined more than once, it is only executed one time. This means that it is also safe to call combineFilter on its own result to combine the result with another filter - the set of filters from the previous result will simply be merged into that of the new result so that only individual filter functions are executed.
Parameters:
Name | Type | Description |
---|---|---|
filters |
Array | A number of functions to combine into one logical function. |
Returns:
The resulting function.
- Type
- function
combineRepeated(sortedJulianDateOrValueArrays, firstColumnTypeopt) → {Array.<Array>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
sortedJulianDateOrValueArrays |
Array.<Array> | The array of arrays of values to combine. These must be sortedByFirst. Dates must be JulianDates. |
|
firstColumnType |
Integer |
<optional> |
Eg. VarType.TIME. |
Returns:
The values, with any repeats in the first column combined into one. Dates are converted to ISO8601 string representation.
Eg. var x = [['a', 'b', 'b', 'c'], [1, 2, undefined, 3], [4, undefined, 5, undefined]]; combineRepeated(x);
x is [['a', 'b', 'c'], [1, 2, 3], [4, 5, undefined]].
- Type
- Array.<Array>
combineValueArrays(valueArrays) → {Array.<Array>}
Create combined arrays from arrays of column values, eg. [[values1, values2, values3], [values4, values5]]. The first columns of each array must be of the same type (in the above example, values1 and values4). These are combined and sorted into a single column. Then the subsequent columns are added, filling with null where missing. (This could be an option in future.) Eg. if the values of each col are: values1=[1,3]; values2=[10,30]; values3=[100,300]; values4=[1,2]; values5=[-1,-2]; then the resulting array of column values are, in order, [1,2,3]; [10,null,30]; [100,null,300]; [-1,-2,null].
Parameters:
Name | Type | Description |
---|---|---|
valueArrays |
Array.<Array> | See description above. |
Returns:
The synthesized values which could be passed to a table structure.
- Type
- Array.<Array>
computeRingWindingOrder(ring) → {WindingOrder}
- Source:
Determine the winding order of a polygon ring. See https://github.com/mapbox/vector-tile-spec/tree/master/2.0#4344-polygon-geometry-type && https://en.wikipedia.org/wiki/Shoelace_formula
Parameters:
Name | Type | Description |
---|---|---|
ring |
Array.<Point> | The polygon ring as an array of '@mapbox/point-geometry' Points (or any points conforming to {x: number, y: number}). |
Returns:
The winding order of the polygon ring.
- Type
- WindingOrder
containsAny(s, possibleStrings) → {Boolean}
- Source:
Determins is a given string contains any of a number of possible strings.
Parameters:
Name | Type | Description |
---|---|---|
s |
String | The string to test. |
possibleStrings |
Array.<String> | The possible strings to test |
Returns:
true if s
contains any of the strings in possibleStrings
; otherwise, false.
- Type
- Boolean
convertLuceneHit(locational, item)
- Source:
Converts from the Lucene schema to a neater one better suited to addresses.
Parameters:
Name | Type | Description |
---|---|---|
locational |
boolean | Whether to set locational to true - this is set for results that came up within the bounding box
passed to |
item |
object | The lucene schema object to convert. |
convertToDates(tableColumn) → {Object}
- Source:
Simple check to try to guess date format, based on max value of first position. If dates are consistent with US format, it will use US format (mm-dd-yyyy).
Parameters:
Name | Type | Description |
---|---|---|
tableColumn |
TableColumn | The column. |
Returns:
Object with keys: subtype: The identified subtype, or undefined. jsDates: The values as javascript dates. julianDates: The values as JulianDates.
- Type
- Object
correctEntityHeight()
- Source:
Gets the most detailed height from terrainProvider at currentCartographicPosition and updates entity position. It starts querying at levelHint and makes its way down to level zero.
createCatalogItemFromFileOrUrl(terria, fileOrUrl, dataTypeopt, confirmConversionopt) → {Promise}
Asynchronously creates and loads a catalog item for a given file. The returned promise does not resolve until the catalog item is successfully loaded, and it rejects if the file is not in the expected format or another error occurs during loading. If the OGR-based conversion service needs to be invoked to convert the file or URL to a compatible format, the user
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
terria |
Terria | The Terria instance in which to create the item. |
||
fileOrUrl |
File | String | The file or URL for which to create a catalog item. |
||
dataType |
String |
<optional> |
'auto'
|
The type of catalog item to create. If 'auto', the type is deduced from the URL or filename.
If 'other', the OGR-based conversion service is used. This can also be any valid catalog item
|
confirmConversion |
Boolean |
<optional> |
true
|
If true, and the OGR-based conversion service needs to be invoked, the user will first be asked for permission to upload the file to the conversion service. If false, the user will not be asked for permission. If the user denies the request, the promise will be rejected with the string 'The user declined to use the conversion service.'. |
Returns:
A promise that resolves to the created catalog item.
- Type
- Promise
createCatalogItemFromUrl(url, terria, allowLoad) → {CatalogMember}
Creates a type derived from CatalogMember
based on a given URL.
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The derived type name. |
terria |
Terria | The Terria instance. |
allowLoad |
Boolean | Whether it's ok to attempt to load the URL and detect failures. We generally do this for WMS type services, but not for local files. |
Returns:
The constructed data item or promise, or undefined if the URL is not supported.
- Type
- CatalogMember
createCatalogMemberFromType(type, terria)
Creates a type derived from CatalogMember
based on a given type string.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | The derived type name. |
terria |
Terria | The Terria instance. |
createLeafletCredit(attribution) → {String}
- Source:
A convenient function for handling leaflet credit display
Parameters:
Name | Type | Description |
---|---|---|
attribution |
Credit | the original attribution object for leaflet to display as text or link |
Returns:
The sanitized HTML for the credit.
- Type
- String
createParameterFromType(type, options)
- Source:
Creates a type derived from FunctionParameter
based on a given type string.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | The derived type name. |
options |
Object | Options to pass to the constructor. |
createRegexDeserializer(fieldName) → {function}
- Source:
Deserializes a regex like ".foo" into a case-insensitive regex /.foo/i.
Parameters:
Name | Type | Description |
---|---|---|
fieldName |
String | The name of the field to serialize. |
Returns:
The deserialization function.
- Type
- function
createRegexSerializer(fieldName) → {function}
- Source:
Serializes a regex like /.foo/i into ".foo".
Parameters:
Name | Type | Description |
---|---|---|
fieldName |
String | The name of the field to serialize. |
Returns:
The deserialization function.
- Type
- function
createTimer(radius, containerId, elapsedTimeClass, backgroundClass)
Adds a new timer to the DOM. Call updateTimer()
to make it start animating.
Parameters:
Name | Type | Description |
---|---|---|
radius |
number | Radius of timer. |
containerId |
string | The id of the element to insert the timer into. |
elapsedTimeClass |
string | A class for styling the animation that fills the timer as it runs. |
backgroundClass |
string | A class for styling the timer's background circle. |
d3Sync(parent, arrayData, childElementTagName, updateCallBack, transition)
- Source:
Convenience wrapper that manages D3's enter/exit mechanics to synchronise an array of data with DOM elements.
Parameters:
Name | Type | Description |
---|---|---|
parent |
Element | HTML element which will contain the nodes |
arrayData |
Array.<Object> | Data to be synchronised. |
childElementTagName |
String | Name of HTML element to be created for each data point. |
updateCallBack |
function | Function called with (d3object, isNewElement). If it returns the d3object, an opacity transition will be applied. |
transition |
Boolean | Parameter passed to d3.transition(). |
deIndexWithDescendants(items, index)
- Source:
Removes all passed items to the passed index, and all the children of those items recursively.
Parameters:
Name | Type | Description |
---|---|---|
items |
Array.<CatalogMember> | |
index |
Object |
determineChartType(chartData)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
chartData |
ChartData | ChartData object for which chart type needs to be determined. |
disposeSubscription(component)
- Source:
Disposes of all subscriptions that a component currently has.
Parameters:
Name | Type | Description |
---|---|---|
component |
The component to find and dispose subscriptions on. |
EarthGravityModel1996(gridFileUrl)
- Source:
The Earth Gravity Model 1996 (EGM96) geoid.
Parameters:
Name | Type | Description |
---|---|---|
gridFileUrl |
String | The URL of the WW15MGH.DAC file. |
extendLoad(catalogMember, f)
- Source:
Extends a catalog member's load
method with another, potentially asynchronous.
load function. The catalog member will not be fully loaded until both the original
and the new load return and their promises resolve.
Parameters:
Name | Type | Description |
---|---|---|
catalogMember |
CatalogMember | The catalog member for which to extend the loading process. |
f |
function | The additional load function. This function will be called with |
featureDataToGeoJson(featureData) → {Object}
- Source:
Converts feature data, such as from a WMS GetFeatureInfo or an Esri Identify, to
GeoJSON. The set of feature data formats supported by this function can be extended
by adding to featureDataToGeoJson#supportedFormats
.
Parameters:
Name | Type | Description |
---|---|---|
featureData |
Object | The feature data to convert to GeoJSON. |
Returns:
The GeoJSON representation of this feature data, or undefined if it cannot be converted to GeoJSON.
- Type
- Object
findKeyForGroupElement()
Finds the associated key string for the grouping element provided - e.g. a
flattenCatalog() → {Array}
Takes the hierarchy of serialized catalog members returned by serializeToJson
and flattens it into an Array.
Returns:
- Type
- Array
formatDate(d, localeopt) → {string}
Formats a date according to the locale if provided, otherwise in a dd/mm/yyyy format.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
d |
Date | the date to format |
|
locale |
Locale |
<optional> |
the locale to use for formatting |
Returns:
A formatted date.
- Type
- string
formatDateTime(d, localeopt) → {string}
Combines #formatDate
and #formatTime
.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
d |
Date | the date to format |
|
locale |
Locale |
<optional> |
the locale to use for formatting |
Returns:
A formatted date and time with a comma separating them.
- Type
- string
formatNumberForLocale(number, optionsopt)
- Source:
Format the number using the locale format. When Intl is not available (includes Safari), applies commas to separate thousands, eg. 912345.6789 => '912,345.6789'. Nulls are returned as an empty string, not 0.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
number |
Number | The number to format. |
|||||||||||||||||||||
options |
Object |
<optional> |
A subset of the options of Javascript's Intl NumberFormat, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString . Note we default useGrouping to false (not true) and maximumFractionDigits to 20 (not 3). Properties
|
formatPropertyValue(value, optionsopt)
- Source:
Format the value for the description, used by the Feature Info Panel. Strings have markdown applied to them. Anything else is returned as-is.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value |
The value to format. |
||
options |
Object |
<optional> |
Number formatting options, passed to formatNumberForLocale. |
formatTime(d, localeopt) → {string}
Formats the time according to the locale if provided, otherwise in a hh:mm:ss format.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
d |
Date | the date to format |
|
locale |
Locale |
<optional> |
the locale to use for formatting |
Returns:
A formatted time.
- Type
- string
geoRss2ToGeoJson(xml) → {Object}
- Source:
Converts a GeoRss v2.0 document to GeoJSON.
Parameters:
Name | Type | Description |
---|---|---|
xml |
Document | String | The GML document. |
Returns:
The GeoJSON object.
- Type
- Object
geoRssAtomToGeoJson(xml) → {Object}
- Source:
Converts a GeoRss v2.0 document to GeoJSON.
Parameters:
Name | Type | Description |
---|---|---|
xml |
Document | String | The GML document. |
Returns:
The GeoJSON object.
- Type
- Object
getAncestors(member) → {Array.<CatalogMember>}
- Source:
Return the ancestors in the data catalog of the given catalog member, recursively using "member.parent". The "Root Group" is not included.
Parameters:
Name | Type | Description |
---|---|---|
member |
CatalogMember | The catalog member. |
Returns:
The members' ancestors in its parent tree, starting at the top, not including this member.
- Type
- Array.<CatalogMember>
getColumnOptions(name, tableStructure, columnNumber) → {Object}
- Source:
Return column options object, using defaults where appropriate.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | Name of column |
tableStructure |
TableStructure | TableStructure to use to calculate values. |
columnNumber |
Int | Which column should be used as template for default column options |
Returns:
Column options that TableColumn's constructor understands
- Type
- Object
getColumnWithNameIdOrIndex(nameIdOrIndex, columns) → {TableColumn}
- Source:
Returns the first column with the given name, id or index, or undefined if none match (or null is passed in).
Parameters:
Name | Type | Description |
---|---|---|
nameIdOrIndex |
String | Integer | null | The column name, id or index. |
columns |
Array.<TableColumn> | Test on these columns. |
Returns:
The matching column.
- Type
- TableColumn
getDataUriFormat(dataUri) → {String}
Read the format from the start of a data uri, eg. data:attachment/csv,...
Parameters:
Name | Type | Description |
---|---|---|
dataUri |
String | The data URI. |
Returns:
The format string, eg. 'csv', or undefined if none found.
- Type
- String
getGeometry(node)
- Source:
GeoRss format support following geometries
- GML geometry enclosed with where tag (i.e. georss:wheregml:......</gml:...></georss:where>)
- simple geometry which can be enclosed with where tag but are often not (i.e. georss:point25 45</georss:point>)
- W3C geometry (i.e. geo:Pointgeo:lat55.701</geo:lat>geo:long12.552</geo:long></geo:Point>)
Parameters:
Name | Type | Description |
---|---|---|
node |
* |
getGroupChildren(isSmallScreen, groupElement) → {Array.<Element>}
Gets the children out of a grouping element and sanitises them - e.g. plain strings are converted to s and elements that need to know about whether we're in small screen configuration are provided with that prop.
Parameters:
Name | Type | Description |
---|---|---|
isSmallScreen |
boolean | Is the screen small? |
groupElement |
Element | a grouping element to get children from. |
Returns:
a collection of processed children.
- Type
- Array.<Element>
getShareData(terria, viewStateopt) → {Object}
Returns just the JSON that defines the current view.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
terria |
Object | The Terria object. |
|
viewState |
ViewState |
<optional> |
Current viewState. |
Returns:
- Type
- Object
getTemporalFiltersContext(item, procedureopt, observablePropertyopt) → {Array.<Object>}
Return the Mustache template context "temporalFilters" for this item. If a "defaultDuration" parameter (eg. 60d or 12h) exists on either procedure or observableProperty, restrict to that duration from item.endDate.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
item |
SensorObservationServiceCatalogItem | This catalog item. |
|
procedure |
Object |
<optional> |
An element from the item.procedures array. |
observableProperty |
Object |
<optional> |
An element from the item.observableProperties array. |
Returns:
An array of {index, startDate, endDate}, or undefined.
- Type
- Array.<Object>
gmlToGeoJson(xml) → {Object}
- Source:
Converts a GML v3.1.1 simple features document to GeoJSON.
Parameters:
Name | Type | Description |
---|---|---|
xml |
Document | String | The GML document. |
Returns:
The GeoJSON object.
- Type
- Object
hostInDomains(host, domains) → {boolean}
- Source:
Determines whether this host is, or is a subdomain of, an item in the provided array.
Parameters:
Name | Type | Description |
---|---|---|
host |
String | The host to search for |
domains |
Array.<String> | The array of domains to look in |
Returns:
The result.
- Type
- boolean
initializeChartData()
- Source:
singleton
initializeChartTypes()
- Source:
Ensure that we have determined the chart type for every data item in our state.
isBrowserCompatible() → {Boolean}
- Source:
Determines if this browser has any hope of running TerriaJS. Specifically, this function checks for the presence of the basic ECMAScript 5 function "Object.create".
Returns:
true if this web browser has a chance of running TerriaJS, or false if the browser is so old (pre-IE9) that there is no chance of a good result.
- Type
- Boolean
isCloseToEasternAntiMeridian()
- Source:
Computes whether we're looking close to the east of the anti-meridian Our western viewing extent must be > 140 degrees
Returns:
boolean
isCloseToWesternAntiMeridian()
- Source:
Computes whether we're looking close to the west of the anti-meridian Our eastern viewing extent must be < -140 degrees
Returns:
boolean
isCommonMobilePlatform(userAgentStringopt) → {Boolean}
- Source:
Determines if this is a common mobile platform such as iOS, Android, or Windows Phone.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
userAgentString |
String |
<optional> |
The user agent string to check. If this property is not specified, |
Returns:
[description]
- Type
- Boolean
Legend()
- Source:
Legend object for generating and displaying a legend. Constructor: new Legend(props), where props is an object containing many properties. Other than the "items" property, it is preferable to leave other properties to their defaults for style consistency.
markdownToHtml(markdownString, allowUnsafeHtml, optionsopt) → {String}
- Source:
Convert a String in markdown format (which includes html) into html format.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
markdownString |
String | String in markdown format. |
|
allowUnsafeHtml |
Boolean | Pass true to allow unsafe html. Defaults to false. |
|
options |
Object |
<optional> |
Options to pass to DOMPurify, eg. {ADD_TAGS: ['ying', 'yang']} (https://github.com/cure53/DOMPurify). |
Returns:
HTML-formatted string.
- Type
- String
markerVisible()
- Source:
Determines whether the location marker is visible previously added in #addMarker
.
NowViewing()
- Source:
The model for the "Now Viewing" pane.
overrideProperty(owner, propertyName, descriptor)
- Source:
Overrides a Knockout property definition. Change notification is raised on the old property, if any, to encourage listeners to subscribe to the new one.
Parameters:
Name | Type | Description |
---|---|---|
owner |
Object | The owner of the property. |
propertyName |
String | The name of the property. |
descriptor |
Object | The property descriptor, just like the one that would be passed to |
pad(s) → {string}
Puts a leading 0 in front of a number of it's less than 10.
Parameters:
Name | Type | Description |
---|---|---|
s |
number | A number to pad |
Returns:
A string representing a two-digit number.
- Type
- string
parseCustomHtmlToReact(html, contextopt) → {ReactElement}
Return html as a React Element.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
html |
String | ||
context |
Object |
<optional> |
Provide any further information that custom components need to know here, eg. which feature and catalogItem they come from. |
Returns:
- Type
- ReactElement
parseCustomMarkdownToReact(raw, contextopt) → {ReactElement}
Converts a string from markdown format (of which html is a subset) into a ReactElement.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
raw |
String | String in markdown or html. |
|
context |
Object |
<optional> |
Provide any further information that custom components need to know here, eg. which feature and catalogItem they come from. |
Returns:
- Type
- ReactElement
PickedFeatures()
- Source:
Holds the vector and raster features that the user picked by clicking the mouse on the map.
prettifyCoordinates(longitude, latitude, options)
- Source:
Turns the longitude / latitude in degrees into a human readable pretty strings.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
longitude |
Number | The longitude to format. |
||||||||||||
latitude |
Number | The latitude to format. |
||||||||||||
options |
Object | Object with the following properties: Properties
|
prettifyProjection()
- Source:
Turns the longitude / latitude in degrees into a human readable pretty UTM zone representation.
printWindow(windowToPrint) → {Promise}
- Source:
Tells the web browser to print a given window, which my be an iframe window, and returns a promise that resolves when printing is safely over so that, for example the window can be removed.
Parameters:
Name | Type | Description |
---|---|---|
windowToPrint |
Window | The window to print. |
Returns:
A promise that resolves when printing is safely over. The prommise is rejected if there is no indication that the browser's print
- Type
- Promise
processAddress(address) → {string}
- Source:
Processes a single address to make it more palatable for the search engine.
Parameters:
Name | Type | Description |
---|---|---|
address |
string | Address to process |
Returns:
Processed address
- Type
- string
propertyGetTimeValues(properties, currentTime) → {Object}
- Source:
Gets the values from a Entity's properties object for the time on the current clock.
Parameters:
Name | Type | Description |
---|---|---|
properties |
An entity's property object |
|
currentTime |
JulianDate | The current time if it is a time varying catalog item. |
Returns:
a simple key-value object of properties.
- Type
- Object
readJson(file) → {Object}
- Source:
Try to read the file as JSON. If that fails, try JSON5.
Parameters:
Name | Type | Description |
---|---|---|
file |
File | The file. |
Returns:
The JSON or json5 object described by the file.
- Type
- Object
rectangleToLatLngBounds(rectangle) → {L.latLngBounds}
- Source:
Converts a Cesium Rectangle into a Leaflet LatLngBounds.
Parameters:
Name | Type | Description |
---|---|---|
rectangle |
Rectangle | The rectangle to convert. |
Returns:
The equivalent Leaflet latLngBounds.
- Type
- L.latLngBounds
RegionDataValue(regionCodes, columnHeadings, table, singleSelectValues)
- Source:
Holds a collection of region data.
Parameters:
Name | Type | Description |
---|---|---|
regionCodes |
Array.<String> | The list of region codes. |
columnHeadings |
Array.<String> | The list of column headings describing the values associated with each region. |
table |
Array.<Array.<Number>> | An array of arrays where each array in the outer array corresponds to a single region in the regionCodes list
and each inner array has a value corresponding to each colum in columnHeadings. For a |
singleSelectValues |
Array.<Number> | The single value for each region. For a parameter that is not |
registerCustomComponentTypes()
Registers custom component types.
Here we define the following:
You can define your own by replacing this file with your own version.
- title: The title of the section.
- [open]: true or false (the default).
It can have the following attributes. Currently URLs must point to csv (not json) data; but inline json data is supported.
Note if you change any of these, also update the chartAttributes array above, or they won't make it here. Provide the data in one of these four ways: See CustomComponentType for more details. Wraps around a filter function and records all items that are excluded by it. Does not modify the function passed in. The fn to wrap around The resulting filter function that remembers rejections, and an array
array of the rejected items. As the filter function is used, the rejections array with be populated. Removes a marker previously added in Remove a user added data item or group target to remove Replace all underscores in the string with spaces. If the argument is not a string, return it unchanged. The string to replace. If the argument is not a string, does nothing. The argument with all underscores replaced with spaces. If the argument is not a string, returns the argument unchanged. Sanitises a number (e.g. flat number, unit number etc) from lucene - these are set to -1 if they don't exist,
we'd prefer if they were undefined. Selects a base map by name from a list of base map options. The name is specified by The TerriaJS application. The list of possible base maps. The name of the base map to search for. If true, look for and use a localStorage preference instead. The matching base map, or undefined if not found. Serializes an object to JSON. The object to serialize. A function that, when passed the name of a property as its only parameter, returns true if that property should be serialized and false otherwise. Optional parameters to custom serializers. An object literal corresponding to the serialized object, ready to pass to Provides information about the configuration of the Terria server, by querying /serverconfig Sets the current time of the clock, using a string defined specification for the time point to use. clock to set the current time on. A string specifiying the value to use when setting the currentTime of the clock. Valid options are:
("present": closest to today's date,
"start": start of time range of animation,
"end": end of time range of animation,
An ISO8601 date e.g. "2015-08-08": specified date or nearest if date is outside range). Determines whether this property is valid for updating. Eg. sortByFirst([['b', 'a', 'c'], [1, 2, 3]]) = [['a', 'b', 'c'], [2, 1, 3]]. The array of arrays of values to sort. The values sorted by the first column. Returns indices such that array[indices[i]] = sortedArray[i].
Eg. sortedIndices(['c', 'a', 'b', 'd']) => [1, 2, 0, 3]. (The sorted array is [a, b, c, d], and "a" was in position 1, "b" in position 2, etc.) The array to sort. The usual compare function, eg. function(a, b) { return a - b }. The sorted indices, such that array[sortedIndices[0]] = sortedArray[0]. Breaks an array into pieces, putting them in another array. array to split maximum number of items in each array at end array containing other arrays, which contain a maxiumum number of items in each. Start an existing timer. This will restart the animation if it is already running. Radius of timer. Timer duration in seconds. The id of the element to insert the timer into. A class for styling the animation that fills the timer as it runs. A class for styling the timer's background circle. How much time (in seconds) has already passed. Determines if the current browser supports WebGL. False if WebGL is not supported at all, 'slow' if WebGL is supported
but it has a major performance caveat (e.g. software rendering), and True
if WebGL is available without a major performance caveat. The Terria map viewer, utilizing Cesium and Leaflet. The Terria instance. Object with the following properties: Attribution for the map developer, displayed at the bottom of the map. This is an
object with two properties, The terrain to use in the 3D view. This may be a string, in which case it is loaded using
The maximum level to which to allow Leaflet to zoom to.
If this property is undefined, Leaflet defaults to level 18. Convert an array of column values, with column names, to an array of row values. Array of column values, eg. [[1,2,3], [4,5,6]]. Array of column names, eg ['x', 'y']. Array of rows, starting with the column names, eg. [['x', 'y'], [1, 4], [2, 5], [3, 6]]. Trigger a window resize event. Computes the union of an array of rectangles. This function is not 180-meridian safe. The array of rectangles to union. The union of the rectangles, or undefined if the array of rectangles is empty. Computes the union of two rectangles. This function is not 180-meridian safe. The first rectangle to union. The second rectangle to union. The existing The union of the two rectangles. Updates the The Terria instance to update. The browser's window DOM object. The URL shortener to use to expand short URLs. If this property is undefined, short URLs will not be expanded. Updates an object from a JSON representation of the object. Only properties that actually exist on the object are read from the JSON,
and the object has the opportunity to inject specialized deserialization logic by providing an The object to update from the JSON. The JSON description. The JSON should be in the form of an object literal, not a string. Optional parameters to custom updaters. A promise that resolves when the update completes. Updates the The catalog item to update. The region provider. The region from which to update the rectangle. The region must be known to the region provider. A promise that resolves when the rectangle has been updated. This promise silently resolves
if an error occurs while trying to update the rectangle. Callback for when clean up is happening, i.e., for done or cancel. Callback for when the dialog is displayed, to provide a custom message Message to add to dialog Callback for when a point is clicked. Contains all point entities that user has selected so far Callback for when a point is moved. Contains all point entities that user has selected so far Callback for when a point is moved. Contains all point entities that user has selected so far Callback for when a point is moved. Contains all point entities that user has selected so far Callback for when a point is moved. Contains all point entities that user has selected so far Callback after screen is displayed. ViewState. Callback before screen is displayed. ViewState. and, if so, rearranges itself to span two columns.
rememberRejections(filterFn) → {Object}
Parameters:
Name
Type
Description
filterFn
Returns:
removeMarker()
#addMarker
.removeUserAddedData(the)
Parameters:
Name
Type
Description
terria
the
target
replaceUnderscores(string)
Parameters:
Name
Type
Description
string
Returns:
sanitiseAddressNumber()
selectBaseMap(terria, baseMaps, defaultBaseMapName, useStoredPreference) → {BaseMapViewModel}
terria.baseMapName
, or,
if that property is undefined, by the specified defaultBaseMapName
. In addition to setting terria.baseMap
,
this function subscribes to be notified when terria.baseMapName
changes and updates terria.baseMap
accordingly. If a base map with the name is not in the baseMaps
list, this method leaves the
terria.baseMap
property unmodified.Parameters:
Name
Type
Description
terria
Terria
baseMaps
Array.<BaseMapViewModel>
defaultBaseMapName
string
useStoredPreference
boolean
Returns:
serializeToJson(target, filterFunction, optionsopt) → {Object}
Parameters:
Name
Type
Attributes
Description
target
Object
filterFunction
function
options
Object
<optional>
Returns:
JSON.stringify
.
ServerConfig()
setClockCurrentTime(clock, initialTimeSource)
Parameters:
Name
Type
Description
clock
DataSourceClock
initialTimeSource
String
shouldBeUpdated()
sortByFirst(valueArrays) → {Array.<Array>}
Parameters:
Name
Type
Description
valueArrays
Array.<Array>
Returns:
sortedIndices(array, compareFunctionopt) → {Array}
Parameters:
Name
Type
Attributes
Description
array
Array
compareFunction
function
<optional>
Returns:
splitIntoBatches(arrayToSplit, batchSize)
Parameters:
Name
Type
Description
arrayToSplit
Array
batchSize
number
Returns:
startTimer(radius, interval, containerId, elapsedTimeClass, backgroundClass, elapsedopt)
Parameters:
Name
Type
Attributes
Default
Description
radius
number
interval
number
containerId
string
elapsedTimeClass
string
backgroundClass
string
elapsed
string
<optional>
0
supportsWebGL() → {Boolean|String}
Returns:
TerriaViewer(terria, options)
Parameters:
Name
Type
Description
terria
Terria
options
Object
Properties
Name
Type
Attributes
Description
developerAttribution
Object
<optional>
text
and link
. link
is optional and is the URL to open when the user
clicks on the attribution.
terrain
String
|
TerrainProvider
<optional>
CesiumTerrainProvider
, or it may be a TerrainProvider
. If this property is undefined, STK World Terrain
is used.
maximumLeafletZoomLevel
Integer
<optional>
toArrayOfRows(columnValueArrays, columnNames) → {Array.<Array>}
Parameters:
Name
Type
Description
columnValueArrays
Array.<Array>
columnNames
Array.<String>
Returns:
triggerResize()
unionRectangleArray(rectangles) → {Rectangle}
Parameters:
Name
Type
Description
rectangles
Array.<Rectangle>
Returns:
unionRectangles(first, second, resultopt) → {Rectangle}
Parameters:
Name
Type
Attributes
Description
first
Rectangle
second
Rectangle
result
Rectangle
<optional>
Rectangle
to which to copy the result instead of creating and returning a new instance.Returns:
updateApplicationOnHashChange(terria, window, urlShorteneropt)
Terria
when the window's 'hashchange' event is raised. This allows new init files and
"start=" URLs to be loaded just by changing the hash portion of the URL in the browser's address bar.Parameters:
Name
Type
Attributes
Description
terria
Terria
window
Window
urlShortener
UrlShortener
<optional>
updateFromJson(target, json, optionsopt) → {Promise}
updaters
property.Parameters:
Name
Type
Attributes
Description
target
Object
json
Object
options
Object
<optional>
Returns:
updateRectangleFromRegion(catalogItem, regionProvider, region) → {Promise}
CatalogItem#rectangle
property of a CatalogItem
to be the bounding rectangle
of a given region.Parameters:
Name
Type
Description
catalogItem
CatalogItem
regionProvider
RegionProvider
region
Object
Returns:
Type Definitions
CleanUpCallback()
MakeDialogMessageCallback() → {String}
Returns:
PointClickedCallback(customDataSource)
Parameters:
Name
Type
Description
customDataSource
CustomDataSource
PointMovedCallback(customDataSource)
Parameters:
Name
Type
Description
customDataSource
CustomDataSource
PointMovedCallback(customDataSource)
Parameters:
Name
Type
Description
customDataSource
CustomDataSource
PointMovedCallback(customDataSource)
Parameters:
Name
Type
Description
customDataSource
CustomDataSource
PointMovedCallback(customDataSource)
Parameters:
Name
Type
Description
customDataSource
CustomDataSource
PostDisplayHookCallback(viewState)
Parameters:
Name
Type
Description
viewState
Object
PreDisplayHookCallback(viewState)
Parameters:
Name
Type
Description
viewState
Object