tactusoft / maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚑ Angular RxJS ArcGIS

  • Angular app using RxJS operators and the ArcGIS API mapping solution from Esri with esri-loader

*** Note: to open web links in a new window use: ctrl+click on link**

πŸ“„ 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

πŸ“· 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

βœ‰οΈ Contact

About


Languages

Language:TypeScript 75.3%Language:HTML 16.0%Language:JavaScript 6.1%Language:CSS 2.6%