Skip to content

gavinr-maps/arcgis-js-api-calcite-lit-example

Repository files navigation

ArcGIS Maps SDK for JavaScript + Calcite + Lit Example

This project was started from the LitElement TypeScript starter - see the readme for that here.

Quick start

Clone the repo, then in a terminal:

npm run build:watch

In a second terminal:

npm run serve

Use the component

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>

Installation

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)

About

An example using the ArcGIS Maps SDK for JavaScript and Calcite Components within a Lit web component

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published