Skip to content

πŸ“‹ Angular app to display map data from the Tomtom API

License

Notifications You must be signed in to change notification settings

AndrewJBateman/angular-tomtom-api

Repository files navigation

⚑ Angular Tomtom API

  • Angular app to display map data from the Tomtom API
  • 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

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

πŸ“„ Table of contents

πŸ“š General info

  • Displays a Tomtom zoomable map that shows user position with full-screen and zoom options

πŸ“· Screenshots

Example screenshot

πŸ“Ά Technologies

πŸ’Ύ Setup

πŸ’» Code Examples

  • extract from app.component.ts: function to get user position
private getUserPosition = (): Observable<Position> => {
    const userPosition = new Observable((observer: Subscriber<any>) => {
      navigator.geolocation
        ? navigator.geolocation.getCurrentPosition((pos: any) => {
            observer.next({
              latitude: pos.coords.latitude,
              longitude: pos.coords.longitude,
            });
            observer.complete();
          })
        : observer.error();
    });
    return userPosition;
  };

πŸ†’ Features

  • Not much code required to get a zoomable world map

πŸ“‹ Status & To-Do List

  • Status: Working. Size of build file: 9.46MB - nearly all Vendor files
  • To-Do: Nothing

πŸ‘ Inspiration

πŸ“ License

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

βœ‰οΈ Contact

  • Repo created by ABateman, email: gomezbateman@yahoo.com

About

πŸ“‹ Angular app to display map data from the Tomtom API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published