How to use the terriajs/lib/Models/OgrCatalogItem.conversionServiceBaseUrl 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 magda-io / magda / magda-preview-map / index.js View on Github external
import updateApplicationOnHashChange from "terriajs/lib/ViewModels/updateApplicationOnHashChange";
import updateApplicationOnMessageFromParentWindow from "terriajs/lib/ViewModels/updateApplicationOnMessageFromParentWindow";
import ViewState from "terriajs/lib/ReactViewModels/ViewState";
import BingMapsSearchProviderViewModel from "terriajs/lib/ViewModels/BingMapsSearchProviderViewModel.js";
import GazetteerSearchProviderViewModel from "terriajs/lib/ViewModels/GazetteerSearchProviderViewModel.js";
import GnafSearchProviderViewModel from "terriajs/lib/ViewModels/GnafSearchProviderViewModel.js";
import defined from "terriajs-cesium/Source/Core/defined";
import render from "./lib/Views/render";
import knockout from "terriajs-cesium/Source/ThirdParty/knockout";

import createCatalogMemberFromType from "terriajs/lib/Models/createCatalogMemberFromType";
import MagdaCatalogItem from "./lib/Models/MagdaCatalogItem";
import ViewerMode from "terriajs/lib/Models/ViewerMode.js";

// Tell the OGR catalog item where to find its conversion service.  If you're not using OgrCatalogItem you can remove this.
OgrCatalogItem.conversionServiceBaseUrl =
    configuration.conversionServiceBaseUrl;

// Register all types of catalog members in the core TerriaJS.  If you only want to register a subset of them
// (i.e. to reduce the size of your application if you don't actually use them all), feel free to copy a subset of
// the code in the registerCatalogMembers function here instead.
registerCatalogMembers();
createCatalogMemberFromType.register("magda-item", MagdaCatalogItem);
registerAnalytics();

terriaOptions.analytics = new GoogleAnalytics();
terriaOptions.viewerMode = ViewerMode.CesiumEllipsoid;

// Construct the TerriaJS application, arrange to show errors to the user, and start it up.
var terria = new Terria(terriaOptions);

// Register custom components in the core TerriaJS.  If you only want to register a subset of them, or to add your own,