UNPKG

terriajs

Version:

Geospatial data visualization platform.

763 lines (644 loc) 45.5 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Source: Models/ArcGisMapServerCatalogItem.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/ArcGisMapServerCatalogItem.js</h1> <section> <article> <pre class="prettyprint source linenums"><code>'use strict'; /*global require*/ var ArcGisMapServerImageryProvider = require('terriajs-cesium/Source/Scene/ArcGisMapServerImageryProvider'); 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 Ellipsoid = require('terriajs-cesium/Source/Core/Ellipsoid'); var getToken = require('./getToken'); var ImageryLayerCatalogItem = require('./ImageryLayerCatalogItem'); var ImageryProvider = require('terriajs-cesium/Source/Scene/ImageryProvider'); var inherit = require('../Core/inherit'); var knockout = require('terriajs-cesium/Source/ThirdParty/knockout'); var Legend = require('../Map/Legend'); var LegendUrl = require('../Map/LegendUrl'); var loadJson = require('../Core/loadJson'); var Metadata = require('./Metadata'); var MetadataItem = require('./MetadataItem'); var overrideProperty = require('../Core/overrideProperty'); var proj4 = require('proj4').default; var proj4definitions = require ('../Map/Proj4Definitions'); var proxyCatalogItemUrl = require('./proxyCatalogItemUrl'); var Rectangle = require('terriajs-cesium/Source/Core/Rectangle'); var replaceUnderscores = require('../Core/replaceUnderscores'); var RequestErrorEvent = require('terriajs-cesium/Source/Core/RequestErrorEvent'); var TerriaError = require('../Core/TerriaError'); var unionRectangleArray = require('../Map/unionRectangleArray'); var URI = require('urijs'); var WebMercatorTilingScheme = require('terriajs-cesium/Source/Core/WebMercatorTilingScheme'); var when = require('terriajs-cesium/Source/ThirdParty/when'); /** * A {@link ImageryLayerCatalogItem} representing a layer from an Esri ArcGIS MapServer. * * @alias ArcGisMapServerCatalogItem * @constructor * @extends ImageryLayerCatalogItem * * @param {Terria} terria The Terria instance. */ var ArcGisMapServerCatalogItem = function(terria) { ImageryLayerCatalogItem.call(this, terria); this._legendUrl = undefined; // a LegendUrl object for a legend provided explicitly this._generatedLegendUrl = undefined; // a LegendUrl object pointing to a data URL of a legend generated by us this._mapServerData = undefined; // cached JSON response of server metadata this._layersData = undefined; // cached JSON response of layers metadata this._thisLayerInLayersData = undefined; // cached JSON response of one single layer this._allLayersInLayersData = undefined; // cached JSON response of either all layers, or [one layer]. this._lastToken = undefined; // cached token this._newTokenRequestInFlight = undefined; // a promise for an in-flight token request /** * Gets or sets the comma-separated list of layer IDs to show. If this property is undefined, * all layers are shown. * @type {String} */ this.layers = undefined; /** * Gets or sets the denominator of the largest scale (smallest denominator) for which tiles should be requested. For example, if this value is 1000, then tiles representing * a scale larger than 1:1000 (i.e. numerically smaller denominator, when zooming in closer) will not be requested. Instead, tiles of the largest-available scale, as specified by this property, * will be used and will simply get blurier as the user zooms in closer. * @type {Number} */ this.maximumScale = undefined; /** * Gets or sets the denominator of the largest scale (smallest denominator) beyond which to show a message explaining that no further zoom levels are available, at the request * of the data custodian. * @type {Number} */ this.maximumScaleBeforeMessage = undefined; /** * Gets or sets a value indicating whether to continue showing tiles when the {@link ArcGisMapServerCatalogItem#maximumScaleBeforeMessage} * is exceeded. This property is observable. * @type {Boolean} * @default true */ this.showTilesAfterMessage = true; /** * Gets or sets a value indicating whether features in this catalog item can be selected by clicking them on the map. * @type {Boolean} * @default true */ this.allowFeaturePicking = true; /** * Gets or sets the URL to use for requesting tokens. * @type {String} */ this.tokenUrl = undefined; /** * Gets or sets the additional parameters to pass to the WMS server when requesting images. * All parameter names must be entered in lowercase in order to be consistent with references in TerrisJS code. * If this property is undefined, {@link WebMapServiceCatalogItem.defaultParameters} is used. * @type {Object} */ this.parameters = {}; knockout.track(this, ['layers', 'maximumScale', '_legendUrl', '_generatedLegendUrl', 'maximumScaleBeforeMessage', 'showTilesAfterMessage', 'allowFeaturePicking', 'tokenUrl', 'parameters']); // metadataUrl and legendUrl are derived from url if not explicitly specified. overrideProperty(this, 'metadataUrl', { get: function() { if (defined(this._metadataUrl)) { return this._metadataUrl; } return cleanUrl(this.url); }, set: function(value) { this._metadataUrl = value; } }); overrideProperty(this, 'legendUrl', { get: function() { if (defined(this._legendUrl)) { return this._legendUrl; } else if (defined(this._generatedLegendUrl)) { return this._generatedLegendUrl; } else { return new LegendUrl(cleanUrl(this.url) + '/legend'); } }, set: function(value) { this._legendUrl = value; } }); // The dataUrl must be explicitly specified. Don't try to use `url` as the the dataUrl. overrideProperty(this, 'dataUrl', { get: function() { return this._dataUrl; }, set: function(value) { this._dataUrl = value; } }); overrideProperty(this, 'dataUrlType', { get: function() { return this._dataUrlType; }, set: function(value) { this._dataUrlType = value; } }); }; inherit(ImageryLayerCatalogItem, ArcGisMapServerCatalogItem); defineProperties(ArcGisMapServerCatalogItem.prototype, { /** * Gets the type of data item represented by this instance. * @memberOf ArcGisMapServerCatalogItem.prototype * @type {String} */ type: { get: function() { return 'esri-mapServer'; } }, /** * Gets a human-readable name for this type of data source, 'Esri ArcGIS MapServer'. * @memberOf ArcGisMapServerCatalogItem.prototype * @type {String} */ typeName: { get: function() { return 'Esri ArcGIS MapServer'; } }, /** * Gets the metadata associated with this data source and the server that provided it, if applicable. * @memberOf ArcGisMapServerCatalogItem.prototype * @type {Metadata} */ metadata: { get: function() { if (!defined(this._metadata)) { this._metadata = requestMetadata(this); } return this._metadata; } } }); /* Goal: To match URLs ending in MapServer/0 where 0 is any number but also allowing for an optional final /, and ? and # terms. For simplicity, match any path that includes /MapServer/0 */ var partsRegex = new RegExp('^(.*\/MapServer\/)([0-9]+)', 'i'); function getBaseURI(item) { var uri = new URI(item.url); if (uri.segment(-1).match(/\d+/)) { uri.segment(-1, ''); } return uri; } function getJson(item, uri) { return loadJson(proxyCatalogItemUrl(item, uri.addQuery('f', 'json').toString(), '1d')); } ArcGisMapServerCatalogItem.prototype._load = function() { var that = this; if (!defined(this._mapServerData) || !defined(this._layersData)) { var uri = new URI(this.url); var layers = 'layers'; if (uri.segment(-1).match(/\d+/)) { // URL is a single REST layer, like .../arcgis/rest/services/Society/Society_SCRC/MapServer/16 layers = uri.segment(-1); this.layers = layers; // ## is this ok to do? } var promise = when(); if (this.tokenUrl) { promise = getToken(this.terria, this.tokenUrl, this.url); } return promise.then(function (token) { that._lastToken = token; var serviceUri = getBaseURI(that); var layersUri = getBaseURI(that).segment(layers); // either 'layers' or a number var legendUri = getBaseURI(that).segment('legend'); if (token) { serviceUri.addQuery('token', token); layersUri.addQuery('token', token); legendUri.addQuery('token', token); } var serviceMetadata = that._mapServerData || getJson(that, serviceUri); var layersMetadata = that._layersData || getJson(that, layersUri); var legendMetadata = that._legendData || getJson(that, legendUri); return when.all([serviceMetadata, layersMetadata, legendMetadata]).then(function(results) { if (defined(results[1].layers)) { that.updateFromMetadata(results[0], results[1], results[2], false); } else if (defined(results[1].id)) { // Results of a single layer query. Make it look like a multi layer query result. that.updateFromMetadata(results[0], {"layers": [results[1]]}, results[2], false, results[1]); } else { var message = defined(results[0].error) ? results[0].error.message : 'This dataset returned unusable metadata.'; throw new TerriaError({ title: 'ArcGIS Mapserver Error', message: '&lt;p>' + message + '&lt;/p>&lt;p>Please report it by \ sending an email to &lt;a href="mailto:' + that.terria.supportEmail + '">' + that.terria.supportEmail + '&lt;/a>.&lt;/p>' }); } }); }); } }; ArcGisMapServerCatalogItem.prototype.handleTileError = function(detailsRequestPromise, imageryProvider, x, y, level) { if (!defined(this.tokenUrl)) { return detailsRequestPromise; } const that = this; return detailsRequestPromise.otherwise(function(e) { if (e &amp;&amp; (e.statusCode === 498 || e.statusCode === 499)) { return requestToken(that, imageryProvider); } else { return when.reject(e); } }).then(function(responseText) { // On an `export` request with an expired or invalid token, ArcGIS returns // a 200 response with a JSON payload indicating an error. try { const json = JSON.parse(responseText); if (json &amp;&amp; json.error &amp;&amp; json.error.code) { if (json.error.code === 498 || json.error.code === 499) { return requestToken(that, imageryProvider); } else { // A non-token error occurred, tile fails. return when.reject(new RequestErrorEvent(json.error.code, json.error.message)); } } } catch (e) { } // Not JSON or not an error, so let's retry. return responseText; }); }; function requestToken(catalogItem, imageryProvider) { if (!defined(catalogItem._newTokenRequestInFlight)) { catalogItem._newTokenRequestInFlight = getToken(catalogItem.terria, catalogItem.tokenUrl, catalogItem.url).then(function(token) { catalogItem._lastToken = token; imageryProvider.token = token; catalogItem._newTokenRequestInFlight = undefined; }); } return catalogItem._newTokenRequestInFlight; } ArcGisMapServerCatalogItem.prototype._createImageryProvider = function() { var maximumLevel = maximumScaleToLevel(this.maximumScale); var r = partsRegex.exec(this.url); var baseUrl = (r &amp;&amp; r[2]) ? r[1] : this.url; // Strip trailing forward slash if exists baseUrl = baseUrl.replace(/\/$/g, ''); const dynamicRequired = this.layers &amp;&amp; this.layers.length > 0; const imageryOptions = { url: cleanAndProxyUrl(this, baseUrl), layers: getLayerList(this), tilingScheme: new WebMercatorTilingScheme(), maximumLevel: maximumLevel, mapServerData: this._mapServerData, enablePickFeatures: defaultValue(this.allowFeaturePicking, true), usePreCachedTilesIfAvailable: !dynamicRequired, parameters: this.parameters }; if (defined(this._lastToken)) { // Using the last token is an optimization; if its still valid it will speed up // the operation and if its not then it will just be requested when its needed. imageryOptions.token = this._lastToken; } var imageryProvider = new ArcGisMapServerImageryProvider(imageryOptions); var maximumLevelBeforeMessage = maximumScaleToLevel(this.maximumScaleBeforeMessage); if (defined(maximumLevelBeforeMessage)) { var realRequestImage = imageryProvider.requestImage; var messageDisplayed = false; var that = this; imageryProvider.requestImage = function(x, y, level) { if (level > maximumLevelBeforeMessage) { if (!messageDisplayed) { that.terria.error.raiseEvent(new TerriaError({ title: 'Dataset will not be shown at this scale', message: 'The "' + that.name + '" dataset will not be shown when zoomed in this close to the map because the data custodian has ' + 'indicated that the data is not intended or suitable for display at this scale. Click the dataset\'s Info button on the ' + 'Now Viewing tab for more information about the dataset and the data custodian.' })); messageDisplayed = true; } if (!that.showTilesAfterMessage) { return ImageryProvider.loadImage(imageryProvider, that.terria.baseUrl + 'images/blank.png'); } } return realRequestImage.call(imageryProvider, x, y, level); }; } return imageryProvider; }; var noDataRegex = /^No[\s_-]?Data$/i; /** * Updates this catalog item from a the MapServer metadata and the MapServer/layers metadata. * @param {Object} mapServerJson The JSON metadata found at the /MapServer URL. * @param {Object} layersJson The JSON metadata found at the /MapServer/layers URL. * @param {Boolean} [overwrite=false] True to overwrite existing property values with data from the metadata; false to * preserve any existing values. * @param {Object} [thisLayerJson] A reference to this layer within the `layersJson` object. If this parameter is not * specified, the layer is found automatically based on this catalog item's `layers` property. */ ArcGisMapServerCatalogItem.prototype.updateFromMetadata = function(mapServerJson, layersJson, legendJson, overwrite, thisLayerJson) { var i; if (!defined(thisLayerJson)) { thisLayerJson = findLayers(layersJson.layers, this.layers); if (!defined(thisLayerJson)) { return; } if (defined(this.layers)) { var layers = this.layers.split(','); for (i = 0; i &lt; thisLayerJson.length; ++i) { if (!defined(thisLayerJson[i])) { console.log('A layer with the name or ID \"' + layers[i] + '\" does not exist on the ArcGIS MapServer - ignoring it.'); thisLayerJson.splice(i, 1); layers.splice(i, 1); --i; } } } if (thisLayerJson.length === 0) { return; } } this._mapServerData = mapServerJson; this._layersData = layersJson; this._legendData = legendJson; if (Array.isArray(thisLayerJson)) { this._thisLayerInLayersData = thisLayerJson[0]; this._allLayersInLayersData = thisLayerJson; thisLayerJson = this._thisLayerInLayersData; } else { this._thisLayerInLayersData = thisLayerJson; this._allLayersInLayersData = [thisLayerJson]; } updateValue(this, overwrite, 'dataCustodian', getDataCustodian(mapServerJson)); updateValue(this, overwrite, 'rectangle', getRectangleFromLayers(this._allLayersInLayersData)); // if catalog contains a hand-crafted legend image, we respect it. if (!defined(this._legendUrl)) { this.loadLegendFromJson(legendJson); // a promise. } var minimumMaxScale = Number.MAX_VALUE; var minimumMaxScaleWithoutNoData = Number.MAX_VALUE; for (i = 0; i &lt; this._allLayersInLayersData.length; ++i) { var l = this._allLayersInLayersData[i]; if (l.maxScale &lt; minimumMaxScale) { minimumMaxScale = l.maxScale; } if (!noDataRegex.test(l.name) &amp;&amp; l.maxScale &lt; minimumMaxScaleWithoutNoData) { minimumMaxScaleWithoutNoData = l.maxScale; } } if (minimumMaxScale !== Number.MAX_VALUE) { updateValue(this, overwrite, 'maximumScale', minimumMaxScale); } if (minimumMaxScaleWithoutNoData !== minimumMaxScale) { updateValue(this, overwrite, 'maximumScaleBeforeMessage', minimumMaxScaleWithoutNoData); } updateInfoSection(this, overwrite, 'Data Description', thisLayerJson.description); updateInfoSection(this, overwrite, 'Service Description', mapServerJson.serviceDescription); updateInfoSection(this, overwrite, 'Service Description', mapServerJson.description); var copyrightText = defined(thisLayerJson.copyrightText) &amp;&amp; thisLayerJson.copyrightText.length > 0 ? thisLayerJson.copyrightText : mapServerJson.copyrightText; updateInfoSection(this, overwrite, 'Copyright Text', copyrightText); }; function maximumScaleToLevel(maximumScale) { if (!defined(maximumScale) || maximumScale &lt;= 0.0) { return undefined; } var dpi = 96; // Esri default DPI, unless we specify otherwise. var centimetersPerInch = 2.54; var centimetersPerMeter = 100; var dotsPerMeter = dpi * centimetersPerMeter / centimetersPerInch; var tileWidth = 256; var circumferenceAtEquator = 2 * Math.PI * Ellipsoid.WGS84.maximumRadius; var distancePerPixelAtLevel0 = circumferenceAtEquator / tileWidth; var level0ScaleDenominator = distancePerPixelAtLevel0 * dotsPerMeter; // 1e-6 epsilon from WMS 1.3.0 spec, section 7.2.4.6.9. var ratio = level0ScaleDenominator / (maximumScale - 1e-6); var levelAtMinScaleDenominator = Math.log(ratio) / Math.log(2); return levelAtMinScaleDenominator | 0; } function getRectangleFromLayer(thisLayerJson) { var extent = thisLayerJson.extent; if (defined(extent) &amp;&amp; extent.spatialReference &amp;&amp; extent.spatialReference.wkid) { var wkid = 'EPSG:' + extent.spatialReference.wkid; if (!defined(proj4definitions[wkid])) { return undefined; } var source = new proj4.Proj(proj4definitions[wkid]); var dest = new proj4.Proj('EPSG:4326'); var p = proj4(source, dest, [extent.xmin, extent.ymin]); var west = p[0]; var south = p[1]; p = proj4(source, dest, [extent.xmax, extent.ymax]); var east = p[0]; var north = p[1]; return Rectangle.fromDegrees(west, south, east, north); } return undefined; } function getRectangleFromLayers(layers) { if (!Array.isArray(layers)) { return getRectangleFromLayer(layers); } return unionRectangleArray(layers.map(function(item) { return getRectangleFromLayer(item); })); } function updateInfoSection(item, overwrite, sectionName, sectionValue) { if (!defined(sectionValue) || sectionValue.length === 0) { return; } var section = item.findInfoSection(sectionName); if (!defined(section)) { item.info.push({ name: sectionName, content: sectionValue }); } else if (overwrite) { section.content = sectionValue; } } function updateValue(item, overwrite, propertyName, propertyValue) { if (!defined(propertyValue)) { return; } if (overwrite || !defined(item[propertyName])) { item[propertyName] = propertyValue; } } function getDataCustodian(mapServerJson) { if (mapServerJson &amp;&amp; mapServerJson.documentInfo &amp;&amp; mapServerJson.documentInfo.Author &amp;&amp; mapServerJson.documentInfo.Author.length > 0) { return mapServerJson.documentInfo.Author; } return undefined; } function cleanAndProxyUrl(catalogItem, url) { return proxyCatalogItemUrl(catalogItem, cleanUrl(url)); } function cleanUrl(url) { // Strip off the search portion of the URL var uri = new URI(url); uri.search(''); return uri.toString(); } function requestMetadata(item) { var result = new Metadata(); result.isLoading = true; result.promise = when(item.load()).then(function() { populateMetadataGroup(result.serviceMetadata, item._mapServerData); if (!defined(item.layers)) { result.dataSourceErrorMessage = 'Using all layers from this service that are visible by default. See the Service Details below.'; } else if (defined(item._thisLayerInLayersData)) { populateMetadataGroup(result.dataSourceMetadata, item._thisLayerInLayersData); } else { result.dataSourceErrorMessage = 'No details are available.'; } result.isLoading = false; }).otherwise(function() { result.dataSourceErrorMessage = 'An error occurred while invoking the ArcGIS map service.'; result.serviceErrorMessage = 'An error occurred while invoking the ArcGIS map service.'; result.isLoading = false; }); return result; } function populateMetadataGroup(metadataGroup, sourceMetadata) { if (typeof sourceMetadata === 'string' || sourceMetadata instanceof String) { return; } if (sourceMetadata instanceof Array &amp;&amp; (sourceMetadata.length === 0 || typeof sourceMetadata[0] !== 'object')) { return; } for (var name in sourceMetadata) { if (sourceMetadata.hasOwnProperty(name)) { var value = sourceMetadata[name]; var dest = new MetadataItem(); dest.name = name; dest.value = value; populateMetadataGroup(dest, value); metadataGroup.items.push(dest); } } } function findLayer(layers, id) { id = id.toString(); var idLowerCase = id.toLowerCase(); var foundByName; for (var i = 0; i &lt; layers.length; ++i) { var layer = layers[i]; if (layer.id.toString() === id) { return layer; } else if (layer.name.toLowerCase() === idLowerCase) { foundByName = layer; } } return foundByName; } /* Given a comma-separated string of layer names, returns the layer objects corresponding to them. */ function findLayers(layers, names) { if (!defined(names)) { // If a list of layers is not specified, we're using all layers. return layers; } return names.split(',').map(function(id) { return findLayer(layers, id); }); } function getLayerList(catalogItem) { if (catalogItem._allLayersInLayersData &amp;&amp; catalogItem._allLayersInLayersData.length > 0) { var layers = []; for (var i = 0; i &lt; catalogItem._allLayersInLayersData.length; ++i) { if (defined(catalogItem._allLayersInLayersData[i]) &amp;&amp; defined(catalogItem._allLayersInLayersData[i].id)) { layers.push(catalogItem._allLayersInLayersData[i].id.toString()); } } return layers.join(','); } else { return catalogItem.layers; } } // Load a data URI and wait for it to load, returning an item. All of this is because data URI's don't load instantly, // and we need to load the image in order to pass its dimensions. // Alternative solution: just hardcode 26x26. function loadImage(title, imageURI) { var img = new Image(); img.src = imageURI; var deferred = when.defer(); img.onload = deferred.resolve; return deferred.promise.then(function() { return { title: title, image: img, imageUrl: imageURI, imageWidth: img.width, imageHeight: img.height }; }); } var labelsRegex = /_Labels$/; /** * Turns JSON into a LegendUrl. * @param {Object} json JSON retrieved from server. * @return {Promise} */ ArcGisMapServerCatalogItem.prototype.loadLegendFromJson = function(json) { var options = {title: ''}; var layers = !defined(this.layers) ? [] : this.layers.toLowerCase().split(','); var itemPromises = []; var shownLegends = {}; json.layers.forEach(function(l) { if (noDataRegex.test(l.layerName) || labelsRegex.test(l.layerName)) { return; } if (defined(this.layers) &amp;&amp; layers.indexOf(String(l.layerId)) &lt; 0 &amp;&amp; layers.indexOf(l.layerName.toLowerCase()) &lt; 0) { return; } options.title = replaceUnderscores(l.layerName); l.legend.forEach(function(leg) { if (shownLegends[leg.label + leg.imageData]) { // Hide truly duplicate layers. return; } shownLegends[leg.label + leg.imageData] = true; var title = leg.label !== '' ? leg.label : l.layerName; itemPromises.push(loadImage(replaceUnderscores(title), 'data:' + leg.contentType + ';base64,' + leg.imageData)); }, this); }, this); var that = this; if (itemPromises.length === 0) { return; } return when.all(itemPromises).then(function(items) { items.reverse(); options.items = items; return (that._generatedLegendUrl = new Legend(options).getLegendUrl()); }).otherwise(function(error) { throw error; }); }; module.exports = ArcGisMapServerCatalogItem; </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>