You need to create the OlpClientSettings
object to publish data and get catalog and partition metadata, as well as layer data from the HERE platform.
To create the OlpClientSettings
object:
-
Authenticate to the HERE platform.
-
Import the
OlpClientSettings
class from theolp-sdk-core
module.import { OlpClientSettings } from "@here/olp-sdk-core";
-
Create the
olpClientSettings
instance using the environment in which you work and thegetToken
method.const olpClientSettings = new OlpClientSettings({ environment: "here | here-dev | here-cn | here-cn-dev | http://YourLocalEnvironment", getToken: () => userAuth.getToken() });