Maps

Library Michelin Maps

Gitlab

You have an existing Angular project ? You just want to add the Michelin maps inside? It's this way! ⬇️

Angular Michelin maps

The package is a library to build maps in Angular applications using leaflet.

Usage

Internal with Artifactory : @michelin/maps External with NPM : @michelin/maps

1. Install Michelin Theme

Make sure Michelin theme is correctly installed.

2. Install Michelin Maps

  • Install leaflet :

    -npm i leaflet
    -npm i --save-dev @types/leaflet

  • Install leaflet.markercluster :

    -npm i leaflet.markercluster
    -npm i --save-dev
    @types/leaflet.markercluster

  • Install leaflet-routing-machine :

    -npm i leaflet-routing-machine
    -npm i --save-dev @types/leaflet-routing-machine

  • Install Michelin maps

    -npm i @michelin/maps

  • Add leaflet CSS in Angular architect file :

    -node_modules/leaflet/dist/leaflet.css
    -node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css
    -node_modules/leaflet.markercluster/dist/MarkerCluster.css
    -node_modules/leaflet-routing-machine/dist/leaflet-routing-machine.css

3. Include Michelin Maps modules

Michelin modules can be imported in the shared module

For example :

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MapModule } from '@michelin/maps';
@NgModule({
imports: [
CommonModule,
MapModule
],
providers: [],
declarations: []
})
export class SharedModule {}

Log in

Log in with Michelin ID

To connect to the Design System, I will need:

  • A Michelin ID (e.g. F012345)
  • Double authentification (with the NetIQ application or by SMS)
  • A password associated with your Michelin ID

I don’t have a Michelin ID and/or email

In order to connect to the Design System, I need:

  • A user ID or an email
  • A password

If you have never accessed the Design System, you can request access via this link.