1. 50
    Change the Color of the React Leaflet Delivery Zone
    14s

Change the Color of the React Leaflet Delivery Zone

Colby Fayock
InstructorColby Fayock
Share this video with your friends

Social Share Links

Send Tweet

Just like we changed the styles of our markers before, we can change the colors of shapes.

Click here for exercise instructions

Instructor: [0:00] We have our circles working, but what if we wanted to change the color? Since our circle is inherited from path, we can use all these options to change the color of our circle.

[0:07] On our options object I'm going to specify another property of color, which I'm going to set to blue-violet. If I look at the map and hover over marker, I can see my new color.