Skip to content

📋 Angular app using RxJS operators and the ArcGIS API mapping solution from Esri with esri-loader. Tutorial code.

License

Notifications You must be signed in to change notification settings

AndrewJBateman/angular-rxjs-arcgis

Repository files navigation

⚡ Angular RxJS ArcGIS

  • Angular app using RxJS operators and the ArcGIS API mapping solution from Esri with esri-loader.
  • Code by Andy Gupp at esri - see 👏 Inspiration below - updated to the latest Angular/dependency versions
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • ArcGIS API for Javascript CDN link in esri-map component.
  • ArcGIS for Developers offers a full suite of tools and resources to build mapping and analytics solutions. Use ArcGIS APIs to create location-based applications for web, desktop, and mobile devices.
  • RxJS subscriptions objects used to represents the execution of observables.
  • Note: RxJS version 6.6.6 used - do not update to v7 as it is not compatible with Angular v11

📷 Screenshots

Example screenshot

📶 Technologies

💾 Setup

  • Install dependencies by running npm i
  • Run ng test for Jasmine tests carried out in Karma console
  • Run ng serve for a dev server. Navigate to http://localhost:4200/.
  • The app will automatically reload if you change any of the source files

🔦 Testing

  • Run ng test to execute the unit tests via Karma.
  • Run ng e2e to execute the end-to-end tests via Protractor.

💻 Code Examples

  • extract from control-panel.component.ts to pan to map view in 2s
panMap(coordinates: string) {
    this.mapView.goTo(coordinates).then(() => {
      this.mapView.zoom = 18;
      setTimeout(() => {
        this.mapService.panToWonderComplete();
      }, 2000);
    });
  }

🆒 Features

  • map view pan function

📋 Status & To-Do List

  • Status: Working. Passing 2 out of 4 tests, issue with provider of EsriMapService, e2e testing fails.
  • To-Do: Fix errors

👏 Inspiration

📁 License

  • This project is licensed under the terms of the MIT license.

✉️ Contact

About

📋 Angular app using RxJS operators and the ArcGIS API mapping solution from Esri with esri-loader. Tutorial code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published