Skip to content

An example Choo application that shows how to use esri-loader to create a custom map view.

License

Notifications You must be signed in to change notification settings

jwasilgeo/esri-choo-example

Repository files navigation

esri-choo-example

An example Choo application that shows how to use esri-loader to create a custom map view.

This approach demonstrates how to build a Choo-focused application with the ArcGIS API for JavaScript. Using esri-loader makes the whole development process straightforward and enjoyable.

This project was originally started and scaffolded out with the help of create-choo-app (v1.11). Then esri-loader was added as an additional project dependency, which allows us to glue together an instance of an ArcGIS API MapView inside of a Choo application view.

TODO: Maybe use nanocomponent in the /esri-map-view Choo route to allow us to properly wait until the component is mounted on the DOM by hooking into Nanocomponent.prototype.load(el).

PROOF:

screenshot

Routes

Route File Description
/ views/main.js The main view
/esri-map-view views/esri-map-view.js Display an Esri MapView with the help of esri-loader
/* views/404.js Display unhandled routes

Commands

Command Description
$ npm start Start the development server
$ npm test Lint, validate deps & run tests
$ npm run build Compile all files into dist/
$ npm run create Generate a scaffold file
$ npm run inspect Inspect the bundle's dependencies

About

An example Choo application that shows how to use esri-loader to create a custom map view.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published