Welcome to the next version of the ArcGIS Maps SDK for JavaScript (4.29). This version of the SDK is currently in development and will be updated frequently until the production release in February 2024. Try out new features, perform regression testing, and get a feel for the next release - then share your feedback with the development team. Please make sure that bugs and enhancement requests are specific to https://js.arcgis.com/next, @arcgis/core@next
or @arcgis/core@rc
and not applicable to a released version.
Please note: ArcGIS Maps SDK for JavaScript release management is dynamic. Some new features and updates that appear in js.arcgis.com/next might not be present in the final production release due to a variety of factors (but will likely be present in an upcoming release).
Read about the current version of the SDK at https://developers.arcgis.com/javascript/.
Read the CHANGELOG.md to find about new functionality, bug fixes and any breaking changes in the next version.
Use CDN or npm to try the next version.
To test the next version using the ArcGIS CDN, simply reference the SDK and CSS to start using them in your app.
<link rel="stylesheet" href="https://js.arcgis.com/next/esri/themes/light/main.css">
<script src="https://js.arcgis.com/next/"></script>
Only production CDN builds are available for download.
To test the next version with npm, use npm install @arcgis/core@next
. For npm, jsDelivr is used to host the next
CSS:
@import "https://cdn.jsdelivr.net/npm/@arcgis/core@next/assets/esri/themes/light/main.css";
More information is available in the SDK's Build with ES modules guide topic.
Typings are included with the npm install of ES modules. For most use cases, no special TypeScript configurations are required.
The typings are also included with the npm install of AMD modules, and they can be used in two ways.
For more information on using the triple-slash directive refer to the TypeScript documentation.
main.ts
/// <reference types="arcgis-js-api" />
For more information on using tsconfig.json
refer to the TypeScript documentation.
tsconfig.json
{
"include": [
"node_modules/arcgis-js-api/index.d.ts",
"src/**/*.ts",
"src/**/*.tsx"
]
}
esri-loader is deprecated since 4.29.
Use options.version and specify next
as the value. You can also lazy-load js.arcgis.com/next/esri/themes/light/main.css by adding the css: true
option, or you can use any of the other methods supported by esri-loader instead.
const options = {
version: 'next',
css: true
};
const [Map] = await loadModules(['esri/map'], options);
Copyright 2023 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.