Prerequisites for Embedding a Published Project
Learn the prerequisite tasks required for embedding a published project in your web application.
- Create and publish a project in Spatial Studio.The published project gets displayed on the Projects page under Published Projects.
- Obtain the published project id.
- Click URL in the context menu of the published project.
- Copy the
projectIdvalue that is included in the URL.
- Obtain an access token in Spatial Studio (see About Tokens in Spatial Studio).
- Generate an access token of type Embedding Published Projects token.
- Copy and store the newly created access token value.
- Optionally, perform the following if you wish to interact with the component
features selection.
- Verify that a Key column is assigned in all the related datasets used in the published project.
- Copy all the corresponding
datsetIds.- Navigate to the Datasets page.
- Click open the context menu on the related datasets and click
Properties.
The
datasetIdis displayed in a property field.
- 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.