Coder Social home page Coder Social logo

esridevevents / building-apps-with-geospatial-web-components-2022 Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 151 KB

A simple example that uses Stencil to create a reusable web component using Calcite and the ArcGIS Maps SDK for JavaScript.

License: Apache License 2.0

CSS 16.32% TypeScript 72.53% HTML 11.15%
arcgis calcite-components ds-2022 ds-europe esri esri-devsummit technical-session web-component-starter web-components

building-apps-with-geospatial-web-components-2022's Introduction

Esri European Developer Summit 2022: Building Web Components Demo

Description

A simple example that uses Stencil to create a reusable web component using Calcite and the ArcGIS Maps SDK for JavaScript.

The web component uses a Search widget to find a location (a street, city etc.) then uses this location to run a spatial query on a FeatureLayer. The results of this are then shown in a set of Calcite Cards.

Note: this demo was built before the production release of Calcite was available and is locked to a specific beta version. If you wish to use some of the code in your own components be careful to check for updates at https://developers.arcgis.com/calcite-design-system/components/.

Live Demo

https://demos.alt.esriuk.com/esri-dev-summit-europe-2022/stencil-find-and-list-component/demo/

Getting Started

To build this web component using Stencil, clone this repo to a new directory and run:

npm install
npm start

To build the component for production, run:

npm run build

More help on using Stencil is available here.

Using this component

These are the standard Stencil instructions - there are alternative deployment methods detailed in output targets on the Stencil help pages.

Script tag

  • The first step is to publish to NPM.
  • Put a script tag similar to this <script type='module' src='https://unpkg.com/[email protected]/dist/stencil-find-and-list-component.esm.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

building-apps-with-geospatial-web-components-2022's People

Contributors

kmorrison-esriuk-com avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.