terriajs
Version:
Geospatial data visualization platform.
689 lines (590 loc) • 41 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: Models/CatalogMember.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: Models/CatalogMember.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>'use strict';
/*global require*/
var defaultValue = require('terriajs-cesium/Source/Core/defaultValue');
var defined = require('terriajs-cesium/Source/Core/defined');
var defineProperties = require('terriajs-cesium/Source/Core/defineProperties');
var DeveloperError = require('terriajs-cesium/Source/Core/DeveloperError');
var freezeObject = require('terriajs-cesium/Source/Core/freezeObject');
var when = require('terriajs-cesium/Source/ThirdParty/when');
var knockout = require('terriajs-cesium/Source/ThirdParty/knockout');
var serializeToJson = require('../Core/serializeToJson');
var updateFromJson = require('../Core/updateFromJson');
var runLater = require('../Core/runLater');
var arraysAreEqual = require('../Core/arraysAreEqual');
/**
* A member of a {@link CatalogGroup}. A member may be a {@link CatalogItem} or a
* {@link CatalogGroup}.
*
* @alias CatalogMember
* @constructor
* @abstract
*
* @param {Terria} terria The Terria instance.
*/
var CatalogMember = function(terria) {
if (!defined(terria)) {
throw new DeveloperError('terria is required');
}
this._terria = terria;
/**
* Gets or sets the name of the item. This property is observable.
* @type {String}
*/
this.name = 'Unnamed Item';
/**
* Gets or sets the description of the item. This property is observable.
* @type {String}
*/
this.description = '';
/**
* Gets or sets the array of section titles and contents for display in the layer info panel.
* In future this may replace 'description' above - this list should not contain
* sections named 'description' or 'Description' if the 'description' property
* is also set as both will be displayed.
* The object is of the form {name:string, content:string}.
* Content will be rendered as Markdown with HTML.
* This property is observable.
* @type {Object[]}
* @default []
*/
this.info = [];
/**
* Gets or sets the array of section titles definining the display order of info sections. If this property
* is not defined, {@link DataPreviewSections}'s DEFAULT_SECTION_ORDER is used. This property is observable.
* @type {String[]}
*/
this.infoSectionOrder = undefined;
/**
* Gets or sets a value indicating whether this member was supplied by the user rather than loaded from one of the
* {@link Terria#initSources}. User-supplied members must be serialized completely when, for example,
* serializing enabled members for sharing. This property is observable.
* @type {Boolean}
* @default true
*/
this.isUserSupplied = true;
/**
* Gets or sets a value indicating whether this item is kept above other non-promoted items.
* This property is observable.
* @type {Boolean}
* @default false
*/
this.isPromoted = false;
/**
* Gets or sets a value indicating whether this item is hidden from the catalog. This
* property is observable.
* @type {Boolean}
* @default false
*/
this.isHidden = false;
/**
* A message object that is presented to the user when an item or group is initially clicked
* The object is of the form {title:string, content:string, key: string, confirmation: boolean, confirmText: string, width: number, height: number}.
* This property is observable.
* @type {Object}
*/
this.initialMessage = undefined;
/**
* Gets or sets the cache duration to use for proxied URLs for this catalog member. If undefined, proxied URLs are effectively cachable
* forever. The duration is expressed as a Varnish-like duration string, such as '1d' (one day) or '10000s' (ten thousand seconds).
* @type {String}
*/
this.cacheDuration = undefined;
/**
* Gets or sets whether or not this member should be forced to use a proxy.
* This property is not observable.
* @type {Boolean}
*/
this.forceProxy = false;
/**
* Gets or sets the dictionary of custom item properties. This property is observable.
* @type {Object}
*/
this.customProperties = {};
/**
* An optional unique id for this member, that is stable across renames and moves.
* Use uniqueId to get the canonical unique id for this CatalogMember, which is present even if there is no id.
* @type {String}
*/
this.id = undefined;
/**
* An array of all possible keys that can be used to match to this catalog member when specified in a share link -
* used for maintaining backwards compatibility when adding or changing {@link CatalogMember#id}.
*
* @type {String[]}
*/
this.shareKeys = undefined;
/**
* The parent {@link CatalogGroup} of this member.
*
* @type {CatalogGroup}
*/
this.parent = undefined;
/**
* A short report to show on the now viewing tab. This property is observable.
* @type {String}
*/
this.shortReport = undefined;
/**
* The list of collapsible sections of the short report. Each element of the array is an object literal
* with a `name` and `content` property.
* @type {ShortReportSection[]}
*/
this.shortReportSections = [];
/*
* Gets or sets a value indicating whether this data source is currently loading. This property is observable.
* @type {Boolean}
*/
this.isLoading = false;
/**
* Whether this catalog member is waiting for a disclaimer to be accepted before showing itself.
*
* @type {boolean}
*/
this.isWaitingForDisclaimer = false;
/**
* Indicates that the source of this data should be hidden from the UI (obviously this isn't super-secure as you
* can just look at the network requests).
*
* @type {boolean}
*/
this.hideSource = false;
/**
* The names of items in the {@link CatalogMember#info} array that contain details of the source of this
* CatalogMember's data. This should be overridden by children of this class.
*
* @type {Array}
* @private
*/
this._sourceInfoItemNames = [];
/**
* The name of the item to show in the catalog, if different from `name`. Default undefined.
* This property is observed.
* @type {String}
* @private
*/
this._nameInCatalog = undefined;
this._loadingPromise = undefined;
/** Lookup table for _sourceInfoItemNames, access through {@link CatalogMember#_infoItemsWithSourceInfoLookup} */
this._memoizedInfoItemsSourceLookup = undefined;
knockout.track(this, ['name', 'info', 'infoSectionOrder', 'description', 'isUserSupplied', 'isPromoted',
'initialMessage', 'isHidden', 'cacheDuration', 'customProperties', 'shortReport', 'shortReportSections',
'isLoading', 'isWaitingForDisclaimer', '_nameInCatalog']);
knockout.defineProperty(this, 'nameSortKey', {
get: function() {
var parts = this.nameInCatalog.split(/(\d+)/);
return parts.map(function(part) {
var parsed = parseInt(part, 10);
if (parsed === parsed) {
return parsed;
} else {
return part.trim().toLowerCase();
}
});
}
});
/**
* Gets or sets the name of this catalog member in the catalog. By default this is just `name`, but can be overridden.
* @member {String} nameInCatalog
* @memberOf CatalogMember.prototype
*/
knockout.defineProperty(this, 'nameInCatalog', {
get : function() {
return defaultValue(this._nameInCatalog, this.name);
},
set : function(value) {
this._nameInCatalog = value;
}
});
};
var descriptionRegex = /description/i;
defineProperties(CatalogMember.prototype, {
/**
* Gets the type of data item represented by this instance.
* @memberOf CatalogMember.prototype
* @type {String}
*/
type : {
get : function() {
throw new DeveloperError('Types derived from CatalogMember must implement a "type" property.');
}
},
/**
* Gets a human-readable name for this type of data source, such as 'Web Map Service (WMS)'.
* @memberOf CatalogMember.prototype
* @type {String}
*/
typeName : {
get : function() {
throw new DeveloperError('Types derived from CatalogMember must implement a "typeName" property.');
}
},
/**
* Gets a value that tells the UI whether this is a group.
* Groups, when clicked, expand to show their constituent items.
* @memberOf CatalogMember.prototype
* @type {Boolean}
*/
isGroup : {
get : function() {
return false;
}
},
/**
* Gets the Terria instance.
* @memberOf CatalogMember.prototype
* @type {Terria}
*/
terria : {
get : function() {
return this._terria;
}
},
/**
* Gets the set of functions used to update individual properties in {@link CatalogMember#updateFromJson}.
* When a property name in the returned object literal matches the name of a property on this instance, the value
* will be called as a function and passed a reference to this instance, a reference to the source JSON object
* literal, and the name of the property. If part of the update happens asynchronously, the updater function should
* return a Promise that resolves when it is complete.
* @memberOf CatalogMember.prototype
* @type {Object}
*/
updaters : {
get : function() {
return CatalogMember.defaultUpdaters;
}
},
/**
* Gets the set of functions used to serialize individual properties in {@link CatalogMember#serializeToJson}.
* When a property name on the model matches the name of a property in the serializers object literal,
* the value will be called as a function and passed a reference to the model, a reference to the destination
* JSON object literal, and the name of the property.
* @memberOf CatalogMember.prototype
* @type {Object}
*/
serializers : {
get : function() {
return CatalogMember.defaultSerializers;
}
},
/**
* Gets the set of names of the properties to be serialized for this object when {@link CatalogMember#serializeToJson}
* is called for a share link.
* @memberOf CatalogMember.prototype
* @type {String[]}
*/
propertiesForSharing : {
get : function() {
return CatalogMember.defaultPropertiesForSharing;
}
},
/**
* Tests whether a description is available, either in the 'description' property
* or as a member of the 'info' array.
* @memberOf CatalogMember.prototype
* @type {Boolean}
*/
hasDescription : {
get : function() {
return this.description ||
(this.info &&
this.info.some(function(i){
return descriptionRegex.test(i.name);
}));
}
},
/**
* The canonical unique id for this CatalogMember. Will be the id property if one is present, otherwise it will fall
* back to the uniqueId of this item's parent + this item's name. This means that if no id is set anywhere up the
* tree, the uniqueId will be a complete path of this member's location.
* @memberOf CatalogMember.prototype
* @type {String}
*/
uniqueId : {
get : function() {
if (this.id) {
return this.id;
}
var parentKey = this.parent ? this.parent.uniqueId + '/' : '';
return parentKey + this.name;
}
},
/**
* All keys that have historically been used to resolve this member - the current uniqueId + past shareKeys.
*/
allShareKeys : {
get: function() {
var allShareKeys = [this.uniqueId];
return this.shareKeys ? allShareKeys.concat(this.shareKeys) : allShareKeys;
}
},
needsDisclaimerShown: {
get: function() {
return defined(this.initialMessage) && (!defined(this.initialMessage.key) || !this.terria.getLocalProperty(this.initialMessage.key));
}
},
/**
* A filtered view of {@link CatalogMember#info} that excludes info items that divulge details about the data's
* source, as determined by {@link CatalogMember#__sourceInfoItemNames}.
*/
infoWithoutSources: {
get: function() {
return defaultValue(this.info, []).filter(function(infoItem) {
return !defined(this._infoItemsWithSourceInfoLookup[infoItem.name]);
}.bind(this));
}
},
/**
* Returns a lookup of _sourceInfoItemNames as a map of names to a true value. Memoizes after being called for the
* first time.
*
* @private
*/
_infoItemsWithSourceInfoLookup: {
get: function() {
if (!defined(this._memoizedInfoItemsSourceLookup)) {
this._memoizedInfoItemsSourceLookup = this._sourceInfoItemNames.reduce(function(lookupSoFar, name) {
lookupSoFar[name] = true;
return lookupSoFar;
}, {});
}
return this._memoizedInfoItemsSourceLookup;
}
}
});
/**
* Gets or sets the set of default updater functions to use in {@link CatalogMember#updateFromJson}. Types derived from this type
* should expose this instance - cloned and modified if necesary - through their {@link CatalogMember#updaters} property.
* @type {Object}
*/
CatalogMember.defaultUpdaters = {
nameSortKey: function() {},
info: function(catalogItem, json, propertyName) {
if (defined(json.info)) {
json.info.forEach(function(infoItem) {
var existingItem = catalogItem.info.filter(item => item.name === infoItem.name)[0];
if (defined(existingItem)) {
var index = catalogItem.info.indexOf(existingItem);
catalogItem.info.splice(index, 1, infoItem);
} else {
catalogItem.info.push(infoItem);
}
});
}
}
};
freezeObject(CatalogMember.defaultUpdaters);
/**
* Gets or sets the set of default serializer functions to use in {@link CatalogMember#serializeToJson}. Types derived from this type
* should expose this instance - cloned and modified if necesary - through their {@link CatalogMember#serializers} property.
* @type {Object}
*/
CatalogMember.defaultSerializers = {
nameSortKey: function() {}
};
freezeObject(CatalogMember.defaultSerializers);
/**
* Gets or sets the default set of properties that are serialized when serializing a {@link CatalogMember}-derived object
* for a share link.
* @type {String[]}
*/
CatalogMember.defaultPropertiesForSharing = [
'name'
];
freezeObject(CatalogMember.defaultPropertiesForSharing);
/**
* Updates the catalog member from a JSON object-literal description of it.
* Existing collections with the same name as a collection in the JSON description are
* updated. If the description contains a collection with a name that does not yet exist,
* it is created. Because parts of the update may happen asynchronously, this method
* returns at Promise that will resolve when the update is completely done.
*
* @param {Object} json The JSON description. The JSON should be in the form of an object literal, not a string.
* @param {Object} [options] Object with the following properties:
* @param {Boolean} [options.onlyUpdateExistingItems] true to only update existing items and never create new ones, or false is new items
* may be created by this update.
* @param {Boolean} [options.isUserSupplied] If specified, sets the {@link CatalogMember#isUserSupplied} property of updated catalog members
* to the given value. If not specified, the property is left unchanged.
* @returns {Promise} A promise that resolves when the update is complete.
*/
CatalogMember.prototype.updateFromJson = function(json, options) {
if (defined(options) && defined(options.isUserSupplied)) {
this.isUserSupplied = options.isUserSupplied;
}
var updatePromise = updateFromJson(this, json, options);
// Updating from JSON may trigger a load (e.g. if isEnabled is set to true). So if this catalog item
// is now loading, wait on the load promise as well, which we can get by calling load.
if (this.isLoading) {
return when.all([updatePromise, this.load()]);
} else {
return updatePromise;
}
};
/**
* Serializes the data item to JSON.
*
* @param {Object} [options] Object with the following properties:
* @param {Function} [options.propertyFilter] Filter function that will be executed to determine whether a property
* should be serialized.
* @param {Function} [options.itemFilter] Filter function that will be executed for each item in a group to determine
* whether that item should be serialized.
* @return {Object} The serialized JSON object-literal.
*/
CatalogMember.prototype.serializeToJson = function(options) {
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
var result = serializeToJson(this, options.propertyFilter, options);
result.type = this.type;
result.id = this.uniqueId;
if (defined(this.parent)) {
result.parents = getParentIds(this.parent).reverse();
}
return result;
};
/**
* Gets the ids of all parents of a catalog member, ordered from the closest descendant to the most distant. Ignores
* the root.
* @private
* @param catalogMember The catalog member to get parent ids for.
* @param parentIds A starting list of parent ids to add to (allows the function to work recursively).
* @returns {String[]}
*/
function getParentIds(catalogMember, parentIds) {
parentIds = defaultValue(parentIds, []);
if (defined(catalogMember.parent)) {
return getParentIds(catalogMember.parent, parentIds.concat([catalogMember.uniqueId]));
}
return parentIds;
}
/**
* Finds an {@link CatalogMember#info} section by name.
* @param {String} sectionName The name of the section to find.
* @return {Object} The section, or undefined if no section with that name exists.
*/
CatalogMember.prototype.findInfoSection = function(sectionName) {
for (var i = 0; i < this.info.length; ++i) {
if (this.info[i].name === sectionName) {
return this.info[i];
}
}
return undefined;
};
/**
* Goes up the hierarchy and determines if this CatalogMember is connected with the root in terria.catalog, or whether it's
* part of a disconnected sub-tree.
*/
CatalogMember.prototype.connectsWithRoot = function() {
var item = this;
while (item.parent) {
item = item.parent;
}
return item === this.terria.catalog.group;
};
/**
* "Enables" this catalog member in a way that makes sense for its implementation (e.g. isEnabled for items, isOpen for
* groups, and all its parents and ancestors in the tree.
*/
CatalogMember.prototype.enableWithParents = function() {
throw new DeveloperError('Types derived from CatalogMember must implement a "enableWithParents" function.');
};
CatalogMember.prototype.waitForDisclaimerIfNeeded = function() {
if (this.needsDisclaimerShown) {
this.isWaitingForDisclaimer = true;
var deferred = when.defer();
this.terria.disclaimerListener(this, function() {
this.isWaitingForDisclaimer = false;
deferred.resolve();
}.bind(this));
return deferred.promise;
} else {
return when();
}
};
CatalogMember.prototype.load = function() {
if (defined(this._loadingPromise)) {
// Load already in progress.
return this._loadingPromise;
}
var loadInfluencingValues = [];
if (defined(this._getValuesThatInfluenceLoad)) {
loadInfluencingValues = this._getValuesThatInfluenceLoad();
}
if (arraysAreEqual(loadInfluencingValues, this._lastLoadInfluencingValues)) {
// Already loaded, and nothing has changed to force a re-load.
return undefined;
}
this.isLoading = true;
var that = this;
this._loadingPromise = runLater(function() {
that._lastLoadInfluencingValues = [];
if (defined(that._getValuesThatInfluenceLoad)) {
that._lastLoadInfluencingValues = that._getValuesThatInfluenceLoad();
}
return that._load();
}).then(function(result) {
that._loadingPromise = undefined;
that.isLoading = false;
return result;
}).otherwise(function(e) {
that._lastLoadInfluencingValues = undefined;
that._loadingPromise = undefined;
that.isLoading = false;
throw e; // keep throwing this so we can chain more otherwises.
});
return this._loadingPromise;
};
/** A collection of static filters functions used during serialization */
CatalogMember.itemFilters = {
/** Item filter that returns true if the item is user supplied */
userSuppliedOnly: function(item) {
return item.isUserSupplied;
},
/** Item filter that returns true if the item is a {@link CatalogItem} that is enabled, or another kind of {@link CatalogMember}. */
enabled: function(item) {
return !defined(item.isEnabled) || item.isEnabled;
},
/** Item filter that returns true if an item has no local data. */
noLocalData: function(item) {
return !defined(item.data);
}
};
CatalogMember.propertyFilters = {
/**
* Property filter that returns true if the property is in that item's {@link CatalogMember#propertiesForSharing} array.
*/
sharedOnly: function(property, item) {
return item.propertiesForSharing.indexOf(property) >= 0;
}
};
module.exports = CatalogMember;
</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AbsCode.html">AbsCode</a></li><li><a href="AbsConcept.html">AbsConcept</a></li><li><a href="AbsDataset.html">AbsDataset</a></li><li><a href="AbsIttCatalogGroup.html">AbsIttCatalogGroup</a></li><li><a href="AbsIttCatalogItem.html">AbsIttCatalogItem</a></li><li><a href="AddressGeocoder.html">AddressGeocoder</a></li><li><a href="ArcGisCatalogGroup.html">ArcGisCatalogGroup</a></li><li><a href="ArcGisFeatureServerCatalogGroup.html">ArcGisFeatureServerCatalogGroup</a></li><li><a href="ArcGisFeatureServerCatalogItem.html">ArcGisFeatureServerCatalogItem</a></li><li><a href="ArcGisMapServerCatalogGroup.html">ArcGisMapServerCatalogGroup</a></li><li><a href="ArcGisMapServerCatalogItem.html">ArcGisMapServerCatalogItem</a></li><li><a href="AugmentedVirtuality.html">AugmentedVirtuality</a></li><li><a href="BingMapsCatalogItem.html">BingMapsCatalogItem</a></li><li><a href="BooleanParameter.html">BooleanParameter</a></li><li><a href="BulkAddressGeocoderResult.html">BulkAddressGeocoderResult</a></li><li><a href="CameraView.html">CameraView</a></li><li><a href="Catalog.html">Catalog</a></li><li><a href="CatalogFunction.html">CatalogFunction</a></li><li><a href="CatalogGroup.html">CatalogGroup</a></li><li><a href="CatalogItem.html">CatalogItem</a></li><li><a href="CatalogMember.html">CatalogMember</a></li><li><a href="Cesium.html">Cesium</a></li><li><a href="Cesium3DTilesCatalogItem.html">Cesium3DTilesCatalogItem</a></li><li><a href="CesiumDragPoints.html">CesiumDragPoints</a></li><li><a href="CesiumTerrainCatalogItem.html">CesiumTerrainCatalogItem</a></li><li><a href="CkanCatalogGroup.html">CkanCatalogGroup</a></li><li><a href="CkanCatalogItem.html">CkanCatalogItem</a></li><li><a href="Clock.html">Clock</a></li><li><a href="CompositeCatalogItem.html">CompositeCatalogItem</a></li><li><a href="Concept.html">Concept</a></li><li><a href="CorsProxy.html">CorsProxy</a></li><li><a href="CsvCatalogItem.html">CsvCatalogItem</a></li><li><a href="CswCatalogGroup.html">CswCatalogGroup</a></li><li><a href="CustomComponentType.html">CustomComponentType</a></li><li><a href="CzmlCatalogItem.html">CzmlCatalogItem</a></li><li><a href="DataSourceCatalogItem.html">DataSourceCatalogItem</a></li><li><a href="DateTimeParameter.html">DateTimeParameter</a></li><li><a href="DisplayVariablesConcept.html">DisplayVariablesConcept</a></li><li><a href="EnumerationParameter.html">EnumerationParameter</a></li><li><a href="Feature.html">Feature</a></li><li><a href="FunctionParameter.html">FunctionParameter</a></li><li><a href="GeoJsonCatalogItem.html">GeoJsonCatalogItem</a></li><li><a href="GlobeOrMap.html">GlobeOrMap</a></li><li><a href="GnafAddressGeocoder.html">GnafAddressGeocoder</a></li><li><a href="GnafApi.html">GnafApi</a></li><li><a href="GnafSearchProviderViewModel.html">GnafSearchProviderViewModel</a></li><li><a href="GpxCatalogItem.html">GpxCatalogItem</a></li><li><a href="HelpScreen.html">HelpScreen</a></li><li><a href="HelpSequence.html">HelpSequence</a></li><li><a href="HelpSequences.html">HelpSequences</a></li><li><a href="HelpViewState.html">HelpViewState</a></li><li><a href="ImageryLayerCatalogItem____.html">ImageryLayerCatalogItem</a></li><li><a href="IonImageryCatalogItem.html">IonImageryCatalogItem</a></li><li><a href="KmlCatalogItem.html">KmlCatalogItem</a></li><li><a href="Leaflet.html">Leaflet</a></li><li><a href="LeafletDataSourceDisplay.html">LeafletDataSourceDisplay</a></li><li><a href="LeafletDragPoints.html">LeafletDragPoints</a></li><li><a href="LeafletGeomVisualizer.html">LeafletGeomVisualizer</a></li><li><a href="LegendHelper.html">LegendHelper</a></li><li><a href="LegendUrl.html">LegendUrl</a></li><li><a href="LineParameter.html">LineParameter</a></li><li><a href="MagdaCatalogItem.html">MagdaCatalogItem</a></li><li><a href="MapboxMapCatalogItem.html">MapboxMapCatalogItem</a></li><li><a href="MapInteractionMode.html">MapInteractionMode</a></li><li><a href="Metadata.html">Metadata</a></li><li><a href="MetadataItem.html">MetadataItem</a></li><li><a href="module.html#.exports">exports</a></li><li><a href="OgrCatalogItem.html">OgrCatalogItem</a></li><li><a href="OpenStreetMapCatalogItem.html">OpenStreetMapCatalogItem</a></li><li><a href="PlacesLikeMeCatalogfunction.html">PlacesLikeMeCatalogfunction</a></li><li><a href="PointParameter.html">PointParameter</a></li><li><a href="Polling.html">Polling</a></li><li><a href="PolygonParameter.html">PolygonParameter</a></li><li><a href="RectangleParameter.html">RectangleParameter</a></li><li><a href="RegionDataParameter.html">RegionDataParameter</a></li><li><a href="RegionMapping.html">RegionMapping</a></li><li><a href="RegionParameter.html">RegionParameter</a></li><li><a href="RegionProvider.html">RegionProvider</a></li><li><a href="RegionProviderList.html">RegionProviderList</a></li><li><a href="RegionTypeParameter.html">RegionTypeParameter</a></li><li><a href="ResultPendingCatalogItem.html">ResultPendingCatalogItem</a></li><li><a href="SdmxJsonCatalogItem.html">SdmxJsonCatalogItem</a></li><li><a href="SensorObservationServiceCatalogItem.html">SensorObservationServiceCatalogItem</a></li><li><a href="SocrataCatalogGroup.html">SocrataCatalogGroup</a></li><li><a href="SpatialDetailingCatalogFunction.html">SpatialDetailingCatalogFunction</a></li><li><a href="StringParameter.html">StringParameter</a></li><li><a href="SummaryConcept.html">SummaryConcept</a></li><li><a href="TableCatalogItem.html">TableCatalogItem</a></li><li><a href="TableColumn.html">TableColumn</a></li><li><a href="TableColumnStyle.html">TableColumnStyle</a></li><li><a href="TableDataSource.html">TableDataSource</a></li><li><a href="TableStructure.html">TableStructure</a></li><li><a href="TableStyle.html">TableStyle</a></li><li><a href="TerrainCatalogItem.html">TerrainCatalogItem</a></li><li><a href="Terria.html">Terria</a></li><li><a href="TerriaError.html">TerriaError</a></li><li><a href="TerriaJsonCatalogFunction.html">TerriaJsonCatalogFunction</a></li><li><a href="TimeSeriesStack.html">TimeSeriesStack</a></li><li><a href="UrlTemplateCatalogItem.html">UrlTemplateCatalogItem</a></li><li><a href="UrthecastCatalogGroup.html">UrthecastCatalogGroup</a></li><li><a href="UrthecastServerCatalogItem.html">UrthecastServerCatalogItem</a></li><li><a href="UserDrawing.html">UserDrawing</a></li><li><a href="VariableConcept.html">VariableConcept</a></li><li><a href="ViewerModes..html">ViewerModes.</a></li><li><a href="WebFeatureServiceCatalogGroup.html">WebFeatureServiceCatalogGroup</a></li><li><a href="WebFeatureServiceCatalogItem.html">WebFeatureServiceCatalogItem</a></li><li><a href="WebMapServiceCatalogGroup.html">WebMapServiceCatalogGroup</a></li><li><a href="WebMapServiceCatalogItem.html">WebMapServiceCatalogItem</a></li><li><a href="WebMapTileServiceCatalogGroup.html">WebMapTileServiceCatalogGroup</a></li><li><a href="WebMapTileServiceCatalogItem.html">WebMapTileServiceCatalogItem</a></li><li><a href="WebProcessingServiceCatalogFunction.html">WebProcessingServiceCatalogFunction</a></li><li><a href="WebProcessingServiceCatalogGroup.html">WebProcessingServiceCatalogGroup</a></li><li><a href="WebProcessingServiceCatalogItem.html">WebProcessingServiceCatalogItem</a></li><li><a href="WfsFeaturesCatalogGroup.html">WfsFeaturesCatalogGroup</a></li><li><a href="WhyAmISpecialCatalogFunction.html">WhyAmISpecialCatalogFunction</a></li></ul><h3>Global</h3><ul><li><a href="global.html#_bumpyTerrainProvider">_bumpyTerrainProvider</a></li><li><a href="global.html#_terrain">_terrain</a></li><li><a href="global.html#activeTimeColumnNameIdOrIndex">activeTimeColumnNameIdOrIndex</a></li><li><a href="global.html#addBoundingBox">addBoundingBox</a></li><li><a href="global.html#addMarker">addMarker</a></li><li><a href="global.html#addUserCatalogMember">addUserCatalogMember</a></li><li><a href="global.html#allFeaturesAvailablePromise">allFeaturesAvailablePromise</a></li><li><a href="global.html#allShareKeys">allShareKeys</a></li><li><a href="global.html#arrayProduct">arrayProduct</a></li><li><a href="global.html#barHeightMax">barHeightMax</a></li><li><a href="global.html#barHeightMin">barHeightMin</a></li><li><a href="global.html#barLeft">barLeft</a></li><li><a href="global.html#barTop">barTop</a></li><li><a href="global.html#buildEmptyAccumulator">buildEmptyAccumulator</a></li><li><a href="global.html#buildRequestData">buildRequestData</a></li><li><a href="global.html#buildShareLink">buildShareLink</a></li><li><a href="global.html#buildShortShareLink">buildShortShareLink</a></li><li><a href="global.html#calculateFinishDatesFromStartDates">calculateFinishDatesFromStartDates</a></li><li><a href="global.html#canShorten">canShorten</a></li><li><a href="global.html#categoryName">categoryName</a></li><li><a href="global.html#ChartData">ChartData</a></li><li><a href="global.html#color">color</a></li><li><a href="global.html#ColorMap">ColorMap</a></li><li><a href="global.html#combineData">combineData</a></li><li><a href="global.html#combineFilters">combineFilters</a></li><li><a href="global.html#combineRepeated">combineRepeated</a></li><li><a href="global.html#combineValueArrays">combineValueArrays</a></li><li><a href="global.html#computeRingWindingOrder">computeRingWindingOrder</a></li><li><a href="global.html#computeScreenSpacePosition">computeScreenSpacePosition</a></li><li><a href="global.html#config">config</a></li><li><a href="global.html#containsAny">containsAny</a></li><li><a href="global.html#convertLuceneHit">convertLuceneHit</a></li><li><a href="global.html#convertToDates">convertToDates</a></li><li><a href="global.html#correctEntityHeight">correctEntityHeight</a></li><li><a href="global.html#createCatalogItemFromFileOrUrl">createCatalogItemFromFileOrUrl</a></li><li><a href="global.html#createCatalogItemFromUrl">createCatalogItemFromUrl</a></li><li><a href="global.html#createCatalogMemberFromType">createCatalogMemberFromType</a></li><li><a href="global.html#createLeafletCredit">createLeafletCredit</a></li><li><a href="global.html#createParameterFromType">createParameterFromType</a></li><li><a href="global.html#createRegexDeserializer">createRegexDeserializer</a></li><li><a href="global.html#createRegexSerializer">createRegexSerializer</a></li><li><a href="global.html#cssClass">cssClass</a></li><li><a href="global.html#CustomComponents">CustomComponents</a></li><li><a href="global.html#deIndexWithDescendants">deIndexWithDescendants</a></li><li><a href="global.html#Description">Description</a></li><li><a href="global.html#direction">direction</a></li><li><a href="global.html#disposeSubscription">disposeSubscription</a></li><li><a href="global.html#EarthGravityModel1996">EarthGravityModel1996</a></li><li><a href="global.html#error">error</a></li><li><a href="global.html#extendLoad">extendLoad</a></li><li><a href="global.html#extent">extent</a></li><li><a href="global.html#featureClicked">featureClicked</a></li><li><a href="global.html#featureDataToGeoJson">featureDataToGeoJson</a></li><li><a href="global.html#featureMousedown">featureMousedown</a></li><li><a href="global.html#features">features</a></li><li><a href="global.html#findKeyForGroupElement">findKeyForGroupElement</a></li><li><a href="global.html#flattenCatalog">flattenCatalog</a></li><li><a href="global.html#formatDate">formatDate</a></li><li><a href="global.html#formatDateTime">formatDateTime</a></li><li><a href="global.html#formatNumberForLocale">formatNumberForLocale</a></li><li><a href="global.html#formatPropertyValue">formatPropertyValue</a></li><li><a href="global.html#formatTime">formatTime</a></li><li><a href="global.html#getAncestors">getAncestors</a></li><li><a href="global.html#getColumnOptions">getColumnOptions</a></li><li><a href="global.html#getColumnWithNameIdOrIndex">getColumnWithNameIdOrIndex</a></li><li><a href="global.html#getDataUriFormat">getDataUriFormat</a></li><li><a href="global.html#getGroupChildren">getGroupChildren</a></li><li><a href="global.html#getShareData">getShareData</a></li><li><a href="global.html#getTemporalFiltersContext">getTemporalFiltersContext</a></li><li><a href="global.html#getUniqueValues">getUniqueValues</a></li><li><a href="global.html#gmlToGeoJson">gmlToGeoJson</a></li><li><a href="global.html#gradientColorMap">gradientColorMap</a></li><li><a href="global.html#hasAddress">hasAddress</a></li><li><a href="global.html#hasChildren">hasChildren</a></li><li><a href="global.html#hasLatitudeAndLongitude">hasLatitudeAndLongitude</a></li><li><a href="global.html#hostInDomains">hostInDomains</a></li><li><a href="global.html#id">id</a></li><li><a href="global.html#infoWithoutSources">infoWithoutSources</a></li><li><a href="global.html#isBrowserCompatible">isBrowserCompatible</a></li><li><a href="global.html#isCommonMobilePlatform">isCommonMobilePlatform</a></li><li><a href="global.html#isLoading">isLoading</a></li><li><a href="global.html#isVisible">isVisible</a></li><li><a href="global.html#itemHeight">itemHeight</a></li><li><a href="global.html#itemHeightMin">itemHeightMin</a></li><li><a href="global.html#items">items</a></li><li><a href="global.html#itemSpacing">itemSpacing</a></li><li><a href="global.html#itemWidth">itemWidth</a></li><li><a href="global.html#Legend">Legend</a></li><li><a href="global.html#legendUrl">legendUrl</a></li><li><a href="global.html#map">map</a></li><li><a href="global.html#markdownToHtml">markdownToHtml</a></li><li><a href="global.html#markerVisible">markerVisible</a></li><li><a href="global.html#name">name</a></li><li><a href="global.html#NowViewing">NowViewing</a></li><li><a href="global.html#overrideProperty">overrideProperty</a></li><li><a href="global.html#pad">pad</a></li><li><a href="global.html#parseCustomHtmlToReact">parseCustomHtmlToReact</a></li><li><a href="global.html#parseCustomMarkdownToReact">parseCustomMarkdownToReact</a></li><li><a href="global.html#PickedFeatures">PickedFeatures</a></li><li><a href="global.html#pickPosition">pickPosition</a></li><li><a href="global.html#point">point</a></li><li><a href="global.html#points">points</a></li><li><a href="global.html#position">position</a></li><li><a href="global.html#prettifyCoordinates">prettifyCoordinates</a></li><li><a href="global.html#prettifyProjection">prettifyProjection</a></li><li><a href="global.html#printWindow">printWindow</a></li><li><a href="global.html#processAddress">processAddress</a></li><li><a href="global.html#Proj4Definitions">Proj4Definitions</a></li><li><a href="global.html#propertyGetTimeValues">propertyGetTimeValues</a></li><li><a href="global.html#readJson">readJson</a></li><li><a href="global.html#rectangle">rectangle</a></li><li><a href="global.html#rectangleToLatLngBounds">rectangleToLatLngBounds</a></li><li><a href="global.html#RegionDataValue">RegionDataValue</a></li><li><a href="global.html#regionDetails">regionDetails</a></li><li><a href="global.html#registerCustomComponentTypes">registerCustomComponentTypes</a></li><li><a href="global.html#rememberRejections">rememberRejections</a></li><li><a href="global.html#removeMarker">removeMarker</a></li><li><a href="global.html#replaceUnderscores">replaceUnderscores</a></li><li><a href="global.html#sanitiseAddressNumber">sanitiseAddressNumber</a></li><li><a href="global.html#selectBaseMap">selectBaseMap</a></li><li><a href="global.html#serializeToJson">serializeToJson</a></li><li><a href="global.html#ServerConfig">ServerConfig</a></li><li><a href="global.html#setClockCurrentTime">setClockCurrentTime</a></li><li><a href="global.html#shareKeyIndex">shareKeyIndex</a></li><li><a href="global.html#shouldBeUpdated">shouldBeUpdated</a></li><li><a href="global.html#showSelection">showSelection</a></li><li><a href="global.html#sortByFirst">sortByFirst</a></li><li><a href="global.html#sortedIndices">sortedIndices</a></li><li><a href="global.html#splitIntoBatches">splitIntoBatches</a></li><li><a href="global.html#supportsIntervals">supportsIntervals</a></li><li><a href="global.html#supportsWebGL">supportsWebGL</a></li><li><a href="global.html#TerriaViewer">TerriaViewer</a></li><li><a href="global.html#Title">Title</a></li><li><a href="global.html#toArrayOfRows">toArrayOfRows</a></li><li><a href="global.html#Tooltip">Tooltip</a></li><li><a href="global.html#triggerResize">triggerResize</a></li><li><a href="global.html#unionRectangleArray">unionRectangleArray</a></li><li><a href="global.html#unionRectangles">unionRectangles</a></li><li><a href="global.html#units">units</a></li><li><a href="global.html#up">up</a></li><li><a href="global.html#updateApplicationOnHashChange">updateApplicationOnHashChange</a></li><li><a href="global.html#updateFromJson">updateFromJson</a></li><li><a href="global.html#updateRectangleFromRegion">updateRectangleFromRegion</a></li><li><a href="global.html#variableNameLeft">variableNameLeft</a></li><li><a href="global.html#variableNameTop">variableNameTop</a></li><li><a href="global.html#ViewerMode">ViewerMode</a></li><li><a href="global.html#width">width</a></li><li><a href="global.html#yAxisMax">yAxisMax</a></li><li><a href="global.html#yAxisMin">yAxisMin</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Sep 21 2018 12:26:18 GMT+1000 (AUS Eastern Standard Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>