This lesson is for PRO members.

Unlock this lesson NOW!
Already subscribed? sign in

Adding Shapes to Maps with Leaflet and GeoJSON

2:56 JavaScript lesson by

With a basic map in place we can add shapes, like US states. We will then see how to style the shapes to make a visually appealing map.

Get the Code Now
click to level up

egghead.io comment guidelines

Avatar
egghead.io

With a basic map in place we can add shapes, like US states. We will then see how to style the shapes to make a visually appealing map.

Avatar
Nanda Kishore K

Is there a way to restrict the map only to desired country? For example, I want to show only US and not allow user to browse other countries.

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?