This repo contains notes from Colby Fayock's Egghead Collection Building Maps with React-Leaflet.
These notes contain the same structure as the transcriptions, along with additional rewrites, links to resources, and personal takes on the lesson. Feel free to submit additions to these notes, but please don't remove anything (unless we messed up or misunderstood something).
Generally, there is one document for each video in the course. However, because the videos are rather short (and there's over 60 of them), I've further grouped them into 10 directories (or lessons). Colby further bundles the videos into 3 major groups.
So 1 video collection -> 3 groups -> 10 lessons -> many exercises -> 61 videos!
I wanted to avoid creating subdirectories, so I kept the 10 lesson structure.
The main goal of this course is to create a simple restaurant locator app!
On this journey we will also:
- Learn what the Leaflet mapping library is and what it does
- Add a map to a
create-react-appproject usingReact-Leaflet - Learn about
Map,TileLayer,MarkerandPopupcomponents - Learn about Mapbox
- Learn about GeoJSON
- Learn about Leaflet API
This is a really well structured and super beginner-friendly course. Some prior knowledge of React is recommended, but not required.
If you are a less experienced developer, I recommend watching the course twice: just watch it once then code-along for the second time around.
If you are slightly more advanced, I'd suggest to try and complete the exercises before watching the course for solutions. You'll find Colby's comments instructing you what needs doing sprinkled throughout the codebase.
I didn't have any experience with creating maps beforehand, and this course served as a great introduction. Colby is very intentional in his teaching and expertly mixes new content with exercises, reviews, and deliberate practice, which results in a great learning experience.
I enjoyed it thoroughly and I hope you do too! Eva Dee βοΈ
| emoji | explanation |
|---|---|
| πΉ | links to the course video |
| π» | course repository |
| β¨οΈ | keyboard shortcut |
| π€ | additional resources |
| π | good practice |
A Front End Engineer and UX Designer thatβs passionate about tackling challenges that can help save peopleβs lives and make the world a better place.
You can find Colby on Twitter
Other Egghead content created by Colby.
-
05-Lesson 2 - Adding Your First React Leaflet Map to a New React Application
-
09-Lesson 3 - Customizing Your React Leaflet Map with a Mapbox Basemap Style
-
18-Lesson 4 - Adding a Marker to a Map to Point to a Location with React Leaflet
-
22-Add a Popup Component to Display the Name of our Location
-
25-Lesson 5 - Managing Leaflet State in a React App with Hooks
-
27-Accessing our Leaflet Map Instance Inside a React useEffect Hook
-
28-Use our Leaflet Map Instance to re-add our Marker to the Map
-
31-Lesson 6 - Create Your First GeoJSON Document and Add Restaurant Locations to the Map
-
34-Manually Add a New Restaurant Location to the GeoJSON Document
-
38-Lesson 7 - Add Restaurant Info to GeoJSON Documents and Display it in a Tooltip on the Map
-
39-Updating our GeoJSON Data to Include Restaurant Information
-
46-Lesson 8 - Add Restaurant Delivery Zones to Map with Shaded Regions
-
48-Using the Delivery Radius to add a Shaded Circle to the Map
-
51-Lesson 9 - Customize Restaurant Location Markers with Custom Images
-
52-Recreate Restaurant Markers with GeoJSON Configuration Option
-
56-Lesson 10 - Use Leaflet's Geolocation API to Find Locations Near You
-
58-Create a Button taht Finds your Location and Navigates the Map to that Location
-
60-Add a Circle to the Map Designing the Accuracy of the Browser's Location
-
61-Clean up Location Event handler Resources when Page Unmounts
Thanks goes to these wonderful people (emoji key):
Eva π |
Lucas Minter π |
Zac Jones π |
Maggie Appleton π¨ |