How to use the terriajs/lib/Models/CatalogItem.call function in terriajs

To help you get started, we’ve selected a few terriajs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TerriaJS / terriajs / lib / Models / MagdaCatalogItem.js View on Github external
function MagdaCatalogItem(terria) {
  CatalogItem.call(this, terria);

  /**
   * Gets or sets the ID of the MAGDA distribution referred to by this catalog item.  Either this property
   * or {@see MagdaCatalogItem#datasetId} must be specified.  If {@see MagdaCatalogItem#datasetId} is
   * specified too, and this distribution is not found, _any_ supported distribution may be used instead,
   * depending on the value of {@see MagdaCatalogItem#allowAnyDistributionIfDistributionIdNotFound}.
   * @type {String}
   */
  this.distributionId = undefined;

  /**
   * Gets or sets the ID of the MAGDA dataset referred to by this catalog item.  Either this property
   * is {@see MagdaCatalogItem#distributionId} must be specified.  The first distribution of a supported type
   * in this dataset will be used.
   * @type {String}
   */
github magda-io / magda / magda-preview-map / lib / Models / MagdaCatalogItem.js View on Github external
function MagdaCatalogItem(terria) {
    CatalogItem.call(this, terria);

    /**
     * Gets or sets the ID of the MAGDA distribution referred to by this catalog item.  Either this property
     * or {@see MagdaCatalogItem#datasetId} must be specified.  If {@see MagdaCatalogItem#datasetId} is
     * specified too, and this distribution is not found, _any_ supported distribution may be used instead,
     * depending on the value of {@see MagdaCatalogItem#allowAnyDistributionIfDistributionIdNotFound}.
     * @type {String}
     */
    this.distributionId = undefined;

    /**
     * Gets or sets the ID of the MAGDA dataset referred to by this catalog item.  Either this property
     * is {@see MagdaCatalogItem#distributionId} must be specified.  The first distribution of a supported type
     * in this dataset will be used.
     * @type {String}
     */