This project was started from the LitElement TypeScript starter - see the readme for that here.
Clone the repo, then in a terminal:
npm run build:watch
In a second terminal:
npm run serve
The component markup:
<arcgis-js-api-calcite-lit-example
center="[-90.193206, 38.622486]"
zoom="18"
locationLabel="Map currently located at:"
></arcgis-js-api-calcite-lit-example>
If you're including it in your project, you can install via the typical manner:
npm install arcgis-js-api-calcite-lit-example
If you want to use it for demo purposes in a CDN, you must include the ArcGIS Maps SDK for JavaScriPT like this:
<script src="https://js.arcgis.com/4.32/"></script>
<script src="https://esm.sh/arcgis-js-api-calcite-lit-example" type="module"></script>
(demo)
or you can use this switch from esm.sh
:
<script
src="https://esm.sh/arcgis-js-api-calcite-lit-example?bundle-deps"
type="module"
></script>
(demo)