Adding the map component
We are going to create two Angular components for this step—one called MappingcontainerComponent, and another called MapViewComponent.
I broke these up because I wanted to use MappingcontainerComponent to contain the bootstrap infrastructure, while MapViewComponent will just contain the map itself. If you want to, you can combine these together, but for the purposes of establishing a clear delineation to describe what is going on with each part, it was easier for me to create two components here. This does mean that we need to introduce some coordination between the two components, which will reinforce the EventEmitter behavior we covered in Chapter 5, Angular ToDo App with GraphQL and Apollo.
Before we add any body ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access