Mar 29, 2021 · Step 2 — Creating the Map Component. Now, you can create the custom map component: npx @angular/cli generate component map --skip-tests.This command will produce four new files: map.component.css, map.component.html, and map.component.ts.. "/>