@arcgis/core 4.28.5 → 4.28.7
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 +15 -25
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0c08d59c5d65921ba5ae.js +1 -0
- package/assets/esri/core/workers/chunks/0dbf3fa096d02d83b222.js +1 -0
- package/assets/esri/core/workers/chunks/16453ca31cc3e09fde46.js +1 -0
- package/assets/esri/core/workers/chunks/{1da721608993783dc9cf.js → 24d04cca452ba2fec5d4.js} +1 -1
- package/assets/esri/core/workers/chunks/2c121541cde5c24b1fbe.js +1 -0
- package/assets/esri/core/workers/chunks/2efd2496f7310142f928.js +1 -0
- package/assets/esri/core/workers/chunks/42880f0fac5f1606201c.js +1 -0
- package/assets/esri/core/workers/chunks/5b17de91091fc17d9821.js +1 -0
- package/assets/esri/core/workers/chunks/70eba80261d7fdc624ad.js +1 -0
- package/assets/esri/core/workers/chunks/{3dcb2a82e1e4b520c9c9.js → 7b901d0b68e5cc17533a.js} +1 -1
- package/assets/esri/core/workers/chunks/7f68c2cc1048d136fd1b.js +1 -0
- package/assets/esri/core/workers/chunks/85d6dd6703b228248e30.js +1 -0
- package/assets/esri/core/workers/chunks/adc138e5d9983a5752d4.js +1 -0
- package/assets/esri/core/workers/chunks/b35e87cf2b8244e3584f.js +1 -0
- package/assets/esri/core/workers/chunks/b49f830a8d74c4564ed8.js +1 -0
- package/assets/esri/core/workers/chunks/b6d77edf9eec757e88da.js +1 -0
- package/assets/esri/core/workers/chunks/c9306fb3ec1a2d5e137a.js +1 -0
- package/assets/esri/core/workers/chunks/cd201c627e9396edf6b9.js +1 -0
- package/assets/esri/core/workers/chunks/ceeaa8d1b0034b59eae7.js +1 -0
- package/assets/esri/core/workers/chunks/dc4a71e72e56cbdff49a.js +1 -0
- package/assets/esri/core/workers/chunks/f78b1bfacd95a6ccf7b4.js +1 -0
- package/assets/esri/themes/base/widgets/_LabeledSwitch.scss +6 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/sqlCompareUtils.js +1 -1
- package/core/sql/sqlDateParsingUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/support/FieldsIndex.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/LabeledSwitch.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/16b56e541afa438dfb7f.js +0 -1
- package/assets/esri/core/workers/chunks/340ab726ba40fe3a99c8.js +0 -1
- package/assets/esri/core/workers/chunks/46b4a17ec898ab744861.js +0 -1
- package/assets/esri/core/workers/chunks/4747741429e8ff7112bb.js +0 -1
- package/assets/esri/core/workers/chunks/4f0412b52844aa9c7bd4.js +0 -1
- package/assets/esri/core/workers/chunks/5b80ae1eb79f1db75dc6.js +0 -1
- package/assets/esri/core/workers/chunks/80fcb63476829b6a48d2.js +0 -1
- package/assets/esri/core/workers/chunks/84725021c43f1122056a.js +0 -1
- package/assets/esri/core/workers/chunks/8cdece03397d01767593.js +0 -1
- package/assets/esri/core/workers/chunks/9607460895182d31aef9.js +0 -1
- package/assets/esri/core/workers/chunks/a0a86383e69932a25e50.js +0 -1
- package/assets/esri/core/workers/chunks/a3bf50d9e24ad1de9847.js +0 -1
- package/assets/esri/core/workers/chunks/a5db3be5eeb3005df3c1.js +0 -1
- package/assets/esri/core/workers/chunks/a87ab14d6a6ccc9004a0.js +0 -1
- package/assets/esri/core/workers/chunks/a8cf23c3a55c1834178c.js +0 -1
- package/assets/esri/core/workers/chunks/ba00df2e707550939a6f.js +0 -1
- package/assets/esri/core/workers/chunks/cfa6d1b63b794febe70a.js +0 -1
- package/assets/esri/core/workers/chunks/e0382138cf58191a9697.js +0 -1
- package/assets/esri/core/workers/chunks/fe0c6814ef56604540b3.js +0 -1
package/README.md
CHANGED
|
@@ -6,15 +6,17 @@ A minified, unbuilt version of the [ArcGIS Maps SDK for JavaScript](https://deve
|
|
|
6
6
|
|
|
7
7
|
For an overview of the SDK, visit the [developer documentation](https://developers.arcgis.com/javascript/latest/key-features/) site.
|
|
8
8
|
|
|
9
|
-
You can install
|
|
9
|
+
You can install this package with [npm](https://npmjs.org/) and then use it directly in a framework such as [React](https://reactjs.org/), [Vue.js](https://vuejs.org) or [Angular](https://cli.angular.io/). Or, you can also create your own custom builds with a module bundler such as [Webpack](https://webpackjs.org) or [Rollup](https://rollupjs.org).
|
|
10
10
|
|
|
11
11
|
The SDK includes [TypeScript](https://www.typescriptlang.org/) type definitions. The `.d.ts` declaration files are bundled with the install.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
For more information on using the `next` versions, visit the [feedback-js-api-next](https://github.com/Esri/feedback-js-api-next/blob/main/README.md) repository.
|
|
14
|
+
|
|
15
|
+
Sample applications can be found at [github.com/Esri/jsapi-resources/](https://github.com/Esri/jsapi-resources/tree/main/esm-samples).
|
|
14
16
|
|
|
15
17
|
## Get started
|
|
16
18
|
|
|
17
|
-
Install the
|
|
19
|
+
Install the package into your project:
|
|
18
20
|
|
|
19
21
|
```
|
|
20
22
|
npm install @arcgis/core
|
|
@@ -22,35 +24,25 @@ npm install @arcgis/core
|
|
|
22
24
|
|
|
23
25
|
## Configure CSS
|
|
24
26
|
|
|
25
|
-
Set the CSS to the same version as the installed
|
|
27
|
+
Set the CSS to the same version as the installed package. You can verify the installed SDK version by running `npm list @arcgis/core`. If you are working with locally hosted assets skip to the _Manage assets locally_ section.
|
|
26
28
|
|
|
27
|
-
The first example shows importing CSS for
|
|
29
|
+
The first example shows importing CSS for the `latest` SDK version: `4.28.7`:
|
|
28
30
|
|
|
29
31
|
_index.css_
|
|
30
32
|
|
|
31
33
|
```css
|
|
32
|
-
@import "https://js.arcgis.com/4.
|
|
34
|
+
@import "https://js.arcgis.com/4.28/@arcgis/core/assets/esri/themes/light/main.css";
|
|
33
35
|
```
|
|
34
36
|
|
|
35
|
-
The second example shows importing CSS for `next` SDK version `4.27.0-next.20230519`:
|
|
36
|
-
|
|
37
|
-
_index.css_
|
|
38
|
-
|
|
39
|
-
```css
|
|
40
|
-
@import "https://cdn.jsdelivr.net/npm/@arcgis/core@4.27.0-next.20230519/assets/esri/themes/light/main.css";
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
For more information on using the next version, visit the [feedback-js-api-next](https://github.com/Esri/feedback-js-api-next/blob/main/README.md) repository.
|
|
44
|
-
|
|
45
37
|
## Working with assets
|
|
46
38
|
|
|
47
|
-
The default configuration for local builds is for the SDK to automatically pull assets from a CDN at runtime
|
|
39
|
+
The default configuration for local builds is for the SDK to automatically pull assets from a CDN at runtime. There is no need for additional configuration. The assets include styles, images, web workers, wasm and localization files. `latest` and `rc` versions of the SDK's assets are hosted on the ArcGIS CDN, while `next` versions use assets hosted on the jsDelivr CDN.
|
|
48
40
|
|
|
49
41
|
### Manage assets locally
|
|
50
42
|
|
|
51
|
-
If you need to manage the assets locally, copy them into your project from `/node_modules/@arcgis/core/assets`, and then set `config.assetsPath` to ensure requests for assets are resolved correctly. A simple way to accomplish this is to configure
|
|
43
|
+
If you need to manage the assets locally, copy them into your project from `/node_modules/@arcgis/core/assets`, and then set `config.assetsPath` to ensure requests for assets are resolved correctly. A simple way to accomplish this is to configure an npm script that runs during your build process. For example, use `cp` on MacOS and Windows PowerShell, or [`xcopy`](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy) on Windows, and configure a script in the package.json to copy the folder.
|
|
52
44
|
|
|
53
|
-
**Important:** Every time you upgrade the SDK, be sure to recopy the new version of the assets
|
|
45
|
+
**Important:** Every time you upgrade the SDK, be sure to recopy the new version of the assets into your project. This ensures the assets and API library stay synchronized.
|
|
54
46
|
|
|
55
47
|
Here’s a React example:
|
|
56
48
|
|
|
@@ -59,8 +51,8 @@ _package.json_
|
|
|
59
51
|
```json
|
|
60
52
|
{
|
|
61
53
|
"scripts": {
|
|
62
|
-
"start": "
|
|
63
|
-
"build": "
|
|
54
|
+
"start": "cp -R ./node_modules/@arcgis/core/assets ./public/assets && react-scripts start",
|
|
55
|
+
"build": "cp -R ./node_modules/@arcgis/core/assets ./public/assets && react-scripts build"
|
|
64
56
|
}
|
|
65
57
|
}
|
|
66
58
|
```
|
|
@@ -78,7 +70,7 @@ _index.css_
|
|
|
78
70
|
@import "@arcgis/core/assets/esri/themes/light/main.css";
|
|
79
71
|
```
|
|
80
72
|
|
|
81
|
-
For Angular, copy the asset files by configuring the `architect/build/options/assets` section of `angular.json`, for example:
|
|
73
|
+
For Angular, one example is to copy the asset files by configuring the `architect/build/options/assets` section of `angular.json`, for example:
|
|
82
74
|
|
|
83
75
|
_angular.json_
|
|
84
76
|
|
|
@@ -121,15 +113,13 @@ _package.json_
|
|
|
121
113
|
}
|
|
122
114
|
```
|
|
123
115
|
|
|
124
|
-
Windows users can use [`xcopy`](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy) or [`ncp`](https://www.npmjs.com/package/ncp) for any platform.
|
|
125
|
-
|
|
126
116
|
## Requirements
|
|
127
117
|
|
|
128
118
|
Use of the ArcGIS Maps SDK for JavaScript is subject to [System Requirements](https://developers.arcgis.com/javascript/latest/system-requirements/), and the terms described in the product-specific [Terms of Use.](https://www.esri.com/en-us/legal/terms/product-specific-scope-of-use) Learn more about licensing [here](https://developers.arcgis.com/javascript/latest/licensing/).
|
|
129
119
|
|
|
130
120
|
## Resources
|
|
131
121
|
|
|
132
|
-
- [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/)
|
|
122
|
+
- [ArcGIS Maps SDK for JavaScript - Build with ES modules](https://developers.arcgis.com/javascript/latest/es-modules/)
|
|
133
123
|
- [http://blogs.esri.com/esri/arcgis/tag/javascript/](https://blogs.esri.com/esri/arcgis/tag/javascript/)
|
|
134
124
|
- [twitter@EsriDevs](https://twitter.com/EsriDevs)
|
|
135
125
|
|