Skip to content

Instantly share code, notes, and snippets.

@odoe
Created March 17, 2023 17:09
Show Gist options
  • Save odoe/b24e1c6a623033ab3d554da9ac168b5f to your computer and use it in GitHub Desktop.
Save odoe/b24e1c6a623033ab3d554da9ac168b5f to your computer and use it in GitHub Desktop.

arcgis-js-api

A minified, unbuilt version of the ArcGIS Maps SDK for JavaScript AMD modules.

⚠️ Repository Archive Notice
This repository will be archived at 4.26 (Early 2023) and then removed in a future release. All versions will continue to be available for install on NPM: https://www.npmjs.com/package/arcgis-js-api

If you are starting a new project, we recommend using @arcgis/core ES modules.

Features

You can install these modules with npm and create your own custom builds, for example you can use RequireJS or the Dojo Toolkit.

Instructions

Additional instructions and examples are available in the SDK's Build with AMD modules Guide page.

npm install arcgis-js-api

TypeScript Typings

The TypeScript type definitions are included with the install and there are two ways to include them. The first way is to include a /// directive in your main TypeScript file:

main.ts

/// <reference types="arcgis-js-api" />

Or, add a reference to the declaration file in the include of your tsconfig.json:

tsconfig.json

{
  "include": [
    "node_modules/arcgis-js-api/index.d.ts",
    "src/**/*.ts",
    "src/**/*.tsx"
  ]
}

Requirements

Use of the ArcGIS Maps SDK for JavaScript is subject to the terms described in the product-specific terms of use. Learn more about licensing here.

Resources

Issues

Licensing

COPYRIGHT © 2023 Esri

All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.

This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement. You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.

For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA

email: contracts@esri.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment