{"id":18614784,"url":"https://github.com/andrewjbateman/angular-arcgis-multimaps","last_synced_at":"2026-03-04T23:32:35.270Z","repository":{"id":96858025,"uuid":"356623265","full_name":"AndrewJBateman/angular-arcgis-multimaps","owner":"AndrewJBateman","description":":clipboard: Angular multi-page app using RxJS operators and ArcGIS esri-mapping solutions from Esri to display a map. Tailwind CSS used for reduced styles build bundle. For the About page info. the Github API is accessed using Angular httpClient and the RxJS take(1) method.","archived":false,"fork":false,"pushed_at":"2024-05-13T19:28:46.000Z","size":15905,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T16:54:15.912Z","etag":null,"topics":["angular","angular-universal","angular17","arcgis","esri","esri-javascript-api","javascript","pwa","rxjs","rxjs7","tailwind","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-10T15:33:18.000Z","updated_at":"2024-05-13T19:28:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"48932cdd-1252-47ef-a362-7593f72b8019","html_url":"https://github.com/AndrewJBateman/angular-arcgis-multimaps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/angular-arcgis-multimaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-arcgis-multimaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-arcgis-multimaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-arcgis-multimaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-arcgis-multimaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-arcgis-multimaps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-arcgis-multimaps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30099420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T23:31:22.529Z","status":"ssl_error","status_checked_at":"2026-03-04T23:31:22.112Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-universal","angular17","arcgis","esri","esri-javascript-api","javascript","pwa","rxjs","rxjs7","tailwind","tailwindcss","typescript"],"created_at":"2024-11-07T03:26:58.996Z","updated_at":"2026-03-04T23:32:35.195Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular ArcGIS Multimaps\n\n* Angular multi-page app using RxJS operators and ArcGIS API mapping from [Esri](https://www.esri.com/en-us/home) to display map\n*** Note: to open web links in a new window use: _ctrl+click on link_**\n\n## :page_facing_up: Table of contents\n\n* [Angular ArcGIS Multimaps](#angular-arcgis-multimaps)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:flashlight: Testing](#flashlight-testing)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \\\u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Basic PWA app with Tailwind CSS\n* Esri-map view refactored to use @arcgis/core mapView and WebMap with a GraphicsLayer to allow sketching\n* WebView map specified using a [portalItem id](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#portalItem)\n* About page - info. about the app\n* Contact page - info. about the author - data from Github API\n* Location page uses sessionStorage to store user coordinates and these are lost the moment the browser is closed\n* [Progressive Web App (PWA)](https://firt.dev/pwa-2021/) capability added. The PWA is still evolving and I believe worth including in an app but needs to be kept up to date\n* [ArcGIS API for Javascript CDN](https://developers.arcgis.com/javascript/latest/guide/get-api/#cdn) link in `esri-map` component.\n* [ArcGIS for Developers](https://developers.arcgis.com/) 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.\n* [Esri - about](https://www.esri.com/en-us/about/about-esri/overview)\n* RxJS subscriptions objects used to represent the execution of observables\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/map.png)\n![Example screenshot](./imgs/about.png)\n![Example screenshot](./imgs/contact.png)\n![Example screenshot](./imgs/location.png)\n\n## :signal_strength: Technologies\n\n* [Angular v17](https://angular.io/)\n* [Angular Service Workers v17](https://angular.io/guide/service-worker-getting-started) used to make this a Progressive Web App (PWA)\n* [Angular Formcontrol 17](https://angular.io/api/forms/FormControl)\n* [RxJS Library v7](https://angular.io/guide/rx-library) used to handle async operations using observables\n* [@arcgis/core v4.29.10](https://www.npmjs.com/package/@arcgis/core) - the version is significant because ES modules were added after v4.18\n\n## :floppy_disk: Setup\n\n* Install dependencies by running `npm i` then enter:\n* `npm start` for a dev server. Navigate to `http://localhost:4200/`.\n* `npm run build` for a PWA build folder (not working)\n* `http-server -p 8080 -c-1 dist/angular-arcgis-multimaps/` then select `http://127.0.0.1:8080` to see PWA app running on a dev server (`ng serve` does not work)\n* The app will automatically reload if you change any of the source files\n  \n## :flashlight: Testing\n\n* `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n* `ng lint` to lint all files\n* `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## :computer: Code Examples\n\n* extract from `app/pages/location/services/coords.service.ts`\n\n```typescript\n    // handle error if geolocation request unsuccesful\n    function handleError(error: any) {\n      let errorStr;\n      switch (error.code) {\n        case error.PERMISSION_DENIED:\n          errorStr = 'User denied the request for Geolocation.';\n          break;\n        case error.POSITION_UNAVAILABLE:\n          errorStr = 'Location information is unavailable.';\n          break;\n        case error.TIMEOUT:\n          errorStr = 'The request to get user location timed out.';\n          break;\n        case error.UNKNOWN_ERROR:\n          errorStr = 'An unknown error occurred.';\n          break;\n        default:\n          errorStr = 'An unknown error occurred.';\n      }\n      console.error('An error occurred: ' + errorStr);\n    }\n```\n\n## :cool: Features\n\n* Tailwind purges unused CSS to make a very small styles build bundle\n* 100% perfect Lighthouse score for About page\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Nothing\n\n## :clap: Inspiration\n\n* [Youtube: ArcGIS API for JavaScript: Building Apps with Angular](https://www.youtube.com/watch?v=ea4D-qGU0_0)\n* [Youtube: ArcGIS API for JavaScript: Using Frameworks](https://www.youtube.com/watch?v=pYlnlQD882w\u0026list=PLahIW2YFPQd7V8IJ0sTo9kMtqn-sCqs40\u0026index=2)\n* [Esri config example](https://github.com/Esri/application-base-js)\n* [ArcGIS API docs](https://developers.arcgis.com/javascript/latest/install-and-set-up/)\n* [Matt Callahan Blog: Angular + ArcGIS API for JavaScript: A unit testing strategy using dependency injection and the facade pattern](https://seesharpdotnet.wordpress.com/2020/12/03/angular-and-arcgis-api-for-javascript-a-unit-testing-strategy-using-dependency-injection-and-the-facade-pattern/)\n* [ArcGIS Living Atlas of the World](https://livingatlas.arcgis.com/en/browse/#d=2\u0026q=sea%20ice)\n* [Dev.to: Setup TailwindCSS in Angular the easy way](https://dev.to/angular/setup-tailwindcss-in-angular-the-easy-way-1i5l)\n* [Free svg icons](https://www.iconfinder.com/search/?q=map\u0026price=free)\n* [StackOverflow: ngIf - Expression has changed after it was checked](https://stackoverflow.com/questions/43513421/ngif-expression-has-changed-after-it-was-checked)\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@gmail.com`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-arcgis-multimaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-arcgis-multimaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-arcgis-multimaps/lists"}