Skip to content
JS

Build Maps with React Leaflet

Course on egghead by Colby Fayock

View on egghead (opens in a new tab)
47 min
LengthVideo runtime
Subscription
Price modelegghead plan
61
Lessons
4.3
Rating out of 524 ratings on egghead
Sept 2020
Published1 Sept 2020

About this course

Description from egghead

If you've ever worked on a website for a business, there's a good chance you've included a map. A Google Map embed is sufficient for showing a location, but doesn't leave you many customization options. React Leaflet to the rescue! In this course, Colby Fayock will guide you through a series of lessons and challenges that will build your map making skills as you build out a web app for a fictional restaurant. You'll get practice with handling API keys and using React Hooks to implement a custom interactive map complete with metadata and additional overlays. This course has built-in challenges that you are encouraged to pause and work through, but feel free to just watch.

What it covers

61 lessons
  1. 1Course Introduction: Build Maps with React Leaflet
  2. 2Section 01 - Overview of Mapping Technologies with Leaflet
  3. 3Replace Assets in React Applications Created with create-react-app
  4. 4Group 1 - Your First Map
  5. 5Section 02 - Adding Your First React Leaflet Map to a New React Application
  6. 6Install Leaflet and react-leaflet with NPM in a JavaScript Project
  7. 7Create a New Map in React Leaflet using the Components TileLayer and Map
  8. 8 Style React Leaflet Components using CSS
  9. 9Section 03 - Customize a React Leaflet Map with a Mapbox Basemap Style
  10. 10Create a Mapbox Account
  11. 11Create a Map Style in Mapbox Studio
  12. 12Create an API Key in Mapbox
  13. 13Extract Environment Variable for the API Key
  14. 14Configure a Mapbox Endpoint with Mapbox GET Request Variables
  15. 15Customize React Leaflet Maps with a Custom Map Style Endpoint
  16. 16Extract Environment Variables to a .env File in a JavaScript Project
  17. 17Create a New Basemap Style in Mapbox Studio
  18. 18Section 04 - Adding a Marker Component to a Map to Point to a Location with React Leaflet
  19. 19Retrieve Latitude and Longitude Coordinates with Google Maps
  20. 20Add a React Leaflet Marker Component with Latitude and Longitude Coordinates
  21. 21Fix react-leaflet Peer Dependencies Conflicts with useEffect Hook
  22. 22Add a React Leaflet Popup Component to Display the Name of an Existing Marker Component
  23. 23Add Latitude and Longitude Coordinates to a React Leaflet Marker Component
  24. 24Group 2 - Managing Map Data
Show 37 more lessons
  1. 25Section 05 - Manage Leaflet State in a React App with Hooks
  2. 26Access a Leaflet Map instance with useRef Hook in React Leaflet
  3. 27Accesse Leaflet Map Instance Inside a React useEffect Hook
  4. 28Create a Marker Component with the Leaflet API Map Instance
  5. 29Manage Stale Map Data in React Leaflet
  6. 30Recreate the Marker from our Second Favorite Location with React Leaflet bindPopup
  7. 31Section 06 - Create Your First GeoJSON Document and Add Restaurant Locations to the Map
  8. 32Understanding the Basics of the GeoJSON Standard
  9. 33Drop Points in geojson.io to Create Your First GeoJSON FeatureCollection
  10. 34Manually Add a New Restaurant Location Feature to the GeoJSON Document
  11. 35Create a New GeoJSON File and Import it into a React App
  12. 36Add GeoJSON Location Data to a React Leaflet Map with a GeoJSON Instance
  13. 37Manually Add Another GeoJSON Location Feature to a Map with React Leaflet
  14. 38Section 07 Add Restaurant Info to GeoJSON Documents and Display it in a Tooltip on the Map
  15. 39Update our GeoJSON Data to Include Restaurant Information by Adding properties
  16. 40Add React Leaflet Popups to all of our Markers using GeoJSON Data
  17. 41Adding Restaurant Information to our Popups
  18. 42Update the Styles of React Leaflet Popups
  19. 43Change the Background Color of a React Leaflet Popup with CSS Selectors
  20. 44Add Another Restaurant Attribute with a GeoJSON Property and Display it in a Leaflet Popup
  21. 45Group 3 - Customizing Your Map
  22. 46Section 08 - Add Restaurant Delivery Zones to Map with Shaded Regions
  23. 47Add a Delivery Radius to our Restaurant GeoJSON Data
  24. 48Add a Shaded React Leaflet Circle to the Map Based on GeoJSON Data
  25. 49Only Showing the Delivery Radius in React Leaflet on Marker Hover using DOM Events
  26. 50Change the Color of the React Leaflet Delivery Zone
  27. 51Section 09 - Customize Restaurant Location Markers with Custom Images
  28. 52Recreate React Leaflet Markers with the GeoJSON pointToLayer Configuration Set
  29. 53Replace the Default React Leaflet Location Markers with a Custom Image
  30. 54Import and Add the Default React Leaflet Shadows back to our Markers
  31. 55Replace the Marker with Custom HTML and Style with CSS
  32. 56Section 10 - Use Leaflet's Geolocation API to Find Locations Near You
  33. 57Add a React Leaflet Marker to a Location when Clicking a Button
  34. 58Add a Button that Finds your Location and Navigates the Map to the Location with Leaflet
  35. 59Use the Browser's Location to Add a React Leaflet Marker to the Map
  36. 60Add a React Leaflet Circle to the Map Designing the Accuracy of the Browser's Location
  37. 61Clean up Location Event handler Resources when Page Unmounts in React useEffect

Similar React courses

  1. Higher Order Components with Functional Patterns Using Recompose

    egghead · Tim Kindberg · 15 lessons · 4.0 from 3 ratings · May 2017

    48 minSubscription
    egghead154.0 (3)May 2017
  2. Progressive Web Apps in React with create-react-app

    egghead · Chris Achard · 20 lessons · 4.3 from 4 ratings · Dec 2018

    46 minSubscription
    egghead204.3 (4)Dec 2018
  3. Build a Server Rendered + Code Split App in React with React Universal Component

    egghead · Tim Kindberg · 13 lessons · 5.0 from 2 ratings · Dec 2017

    45 minSubscription
    egghead135.0 (2)Dec 2017
  4. Learn React Router v5

    Codecademy · 1 lessons · Jan 2023

    Beginner1 h
    Codecademy1Jan 2023
  5. Beginner1 h
    Codecademy2Oct 2022
  6. Beginner1 h
    Codecademy1Oct 2022
  7. Build Your First React Website

    Coursera · Harrison Kong · Jun 2020

    Intermediate1 h 30 min
    CourseraJun 2020
  8. Intermediate1 h 30 min
    CourseraSept 2020

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.

    Compare