Skip to content

Commit 32d8835

Browse files
fix: move esriConfig in disconnected enviro sample (#593)
* fix: move esriConfig in disconnected enviro sample * ci: analyze core esm sample builds * chore: address feedback * chore: update comment * ci: analyze core esm sample builds --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 03d3b0f commit 32d8835

33 files changed

+9
-7
lines changed

component-samples/disconnected-environment/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<link rel="icon" href="data:;base64,=" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Maps SDK in a disconnected environment</title>
8+
<script>
9+
globalThis.esriConfig = {
10+
assetsPath: "./assets",
11+
// Optional: point to your Enterprise portal and /portal/apps/fonts directory
12+
// fontsUrl: "https://<your-enterprise-portal>.com/portal/apps/fonts/",
13+
// portalUrl: "https://<your-enterprise-portal>.com/portal",
14+
};
15+
</script>
816
</head>
917
<body>
1018
<div class="container">

component-samples/disconnected-environment/main.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import "./style.css"; // CSS to style the app
22

3-
import esriConfig from "@arcgis/core/config.js";
43
import { setAssetPath as setCalciteAssetPath } from "@esri/calcite-components";
54
import { setAssetPath as setMapAssetPath } from "@arcgis/map-components";
65
import { setAssetPath as setCodingAssetPath } from "@arcgis/coding-components";
@@ -16,17 +15,12 @@ import "@esri/calcite-components/components/calcite-scrim";
1615
import Graphic from "@arcgis/core/Graphic";
1716
import FeatureLayer from "@arcgis/core/layers/FeatureLayer";
1817

19-
// Set assets path for @arcgis/core, @esri/calcite-components,
18+
// Set assets path for @esri/calcite-components,
2019
// @arcgis/map-components and @arcgis/coding-components
21-
esriConfig.assetsPath = "./assets";
2220
setCalciteAssetPath("./assets");
2321
setMapAssetPath("./assets");
2422
setCodingAssetPath("./assets");
2523

26-
// Optional:
27-
// Point to your Enterprise /portal/apps/fonts directory
28-
// esriConfig.fontsUrl = "https://<your-enterprise-portal>.com/portal/apps/fonts/";
29-
3024
// Get the Map element
3125
const mapElement = document.querySelector("arcgis-map");
3226
// Get the Arcade Editor element
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

zips/coding-components-angular.zip

0 Bytes
Binary file not shown.

zips/coding-components-react.zip

0 Bytes
Binary file not shown.

zips/coding-components-vite.zip

0 Bytes
Binary file not shown.

zips/components-oauth.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)