Course lesson

Add Another Restaurant Attribute with a GeoJSON Property and Display it in a Leaflet Popup

When looking for restaurants, people like to know if the restaurant serves food to their dietary needs. Maybe they're vegan or lactose intolerant -- either way, we can add another data attribute that allows us to display that information.

Duration
1 min
Access
Pro
Transcript
Available

When looking for restaurants, people like to know if the restaurant serves food to their dietary needs. Maybe they're vegan or lactose intolerant -- either way, we can add another data attribute that allows us to display that information.

Create a new data attribute in our the properties of each location in our GeoJSON file for another category like Dietary Restrictions and set up our popup to include that information!

Click here for exercise instructions