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