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
Published 4 years ago
Updated 4 years ago

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.

egghead
egghead
~ 19 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today