7.1 Prerequisites for Embedding a Published Project

Learn the prerequisite tasks required for embedding a published project in your web application.

  1. Create and publish a project in Spatial Studio.
    The published project gets displayed on the Projects page under Published Projects.
  2. Obtain the published project id.
    1. Click URL in the context menu of the published project.
    2. Copy the projectId value that is included in the URL.
  3. Obtain an access token in Spatial Studio (see About Tokens in Spatial Studio).
    1. Generate an access token of type Embedding Published Projects token.
    2. Copy and store the newly created access token value.
  4. Optionally, perform the following if you wish to interact with the component features selection.
    1. Verify that a Key column is assigned in all the related datasets used in the published project.
    2. Copy all the corresponding datsetIds.
      1. Navigate to the Datasets page.
      2. Click open the context menu on the related datasets and click Properties.

        The datasetId is displayed in a property field.

  5. Optionally, configure your Spatial Studio instance to use a CA-signed SSL certificate.

    Embedding a published project from Spatial Studio inside your web application typically involves cross-domain requests. Therefore, browsers will not load the project contents served from Spatial Studio if your Spatial Studio instance does not have a CA-signed certificate, and your web application has one. In such a scenario, it is recommended that you configure your Spatial Studio instance to use a properly signed SSL certificate. See Using a CA-Signed SSL Certificate in the Quick Start Installation for more information.