1. 44
    Add Another Restaurant Attribute with a GeoJSON Property and Display it in a Leaflet Popup
    31s

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

Share this video with your friends

Send Tweet

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