@geosynk/vertigis-web-sdk 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -177,7 +177,7 @@ This SDK includes an automated configuration wizard that sets up seamless OAuth
|
|
|
177
177
|
3. Under **Redirect URIs**, add the following development endpoints:
|
|
178
178
|
- `https://localtest.me:3001`
|
|
179
179
|
- `https://localtest.me:3001/oauth_callback.html`
|
|
180
|
-
4. Copy the generated **App ID / Client ID** (e.g., `
|
|
180
|
+
4. Copy the generated **App ID / Client ID** (e.g., `myPortalAppId123`).
|
|
181
181
|
|
|
182
182
|
#### Step 2: Run the Automated Portal Configurator
|
|
183
183
|
Run the interactive configurator in your project:
|
|
@@ -185,18 +185,18 @@ Run the interactive configurator in your project:
|
|
|
185
185
|
npm run auth:portal
|
|
186
186
|
```
|
|
187
187
|
You will be prompted for:
|
|
188
|
-
- **Portal URL**: Your Enterprise Portal instance (e.g., `https://gis
|
|
188
|
+
- **Portal URL**: Your Enterprise Portal instance (e.g., `https://gis.{org}.com/portal`).
|
|
189
189
|
- **App ID (Client ID)**: The App ID obtained from Step 1.
|
|
190
|
-
- **Account ID**: Organization identifier (e.g., `
|
|
191
|
-
- **Web Map Item ID or URL**: The secured web map to load (e.g., `
|
|
190
|
+
- **Account ID**: Organization identifier (e.g., `{org}` or `enterprise`).
|
|
191
|
+
- **Web Map Item ID or URL**: The secured web map to load (e.g., `4f970e5d0a684b0f9f30cf00fa0119e6`).
|
|
192
192
|
|
|
193
193
|
Or execute directly via non-interactive CLI flags:
|
|
194
194
|
```bash
|
|
195
195
|
npm run auth:portal -- \
|
|
196
|
-
--portal https://gis
|
|
197
|
-
--app-id
|
|
198
|
-
--account-id
|
|
199
|
-
--webmap
|
|
196
|
+
--portal https://gis.{org}.com/portal \
|
|
197
|
+
--app-id myPortalAppId123 \
|
|
198
|
+
--account-id {org} \
|
|
199
|
+
--webmap 4f970e5d0a684b0f9f30cf00fa0119e6
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
#### Step 3: Start Development Server
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ Examples:
|
|
|
37
37
|
npm run auth:portal
|
|
38
38
|
|
|
39
39
|
Direct CLI Mode:
|
|
40
|
-
npm run auth:portal -- --portal https://gis.example.com/portal --app-id MyClientId123 --webmap
|
|
40
|
+
npm run auth:portal -- --portal https://gis.example.com/portal --app-id MyClientId123 --webmap 4f970e5d0a684b0f9f30cf00fa0119e6
|
|
41
41
|
|
|
42
42
|
Reset to Defaults:
|
|
43
43
|
npm run auth:portal -- --reset
|
|
@@ -133,7 +133,7 @@ async function main() {
|
|
|
133
133
|
portalUrl = portalUrl || await prompt(
|
|
134
134
|
rl,
|
|
135
135
|
"ArcGIS Enterprise Portal or AGOL URL",
|
|
136
|
-
existingConfig.portal || "https://gis
|
|
136
|
+
existingConfig.portal || "https://gis.{org}.com/portal"
|
|
137
137
|
);
|
|
138
138
|
|
|
139
139
|
appId = appId || await prompt(
|