---
title: "Discussion on \"How to create custom overlay component in react-leaflet using leaflet-velocity\" | Hashnode"
description: "Discussion on \"How to create custom overlay component in react-leaflet using leaflet-velocity\". I was recently working on a project that used react-leaflet to display a map on the web page and  I was using the  LayersControl  API to display different layers on the map conditionally.\n                    If you have used react-leaflet before for ..."
url: "https://hashnode.com/posts/how-to-create-custom-overlay-component-in-react-leaflet-using-leaflet-velocity/6167a03c53401f641ba15ed0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create custom overlay component in react-leaflet using leaflet-velocity](https://kulkarniprem.hashnode.dev/how-to-create-custom-overlay-component-in-react-leaflet-using-leaflet-velocity?utm_source=hashnode&utm_medium=feed)

I was recently working on a project that used react-leaflet to display a map on the web page and I was using the LayersControl API to display different layers on the map conditionally. If you have used react-leaflet before for ...

Oct 14, 2021 · 3 min read · kulkarniprem.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)

## Written by

[prem kulkarni](https://hashnode.com/@kulkarniprem04)

@kulkarniprem04

  
[View profile](https://hashnode.com/@kulkarniprem04)

Full Stack Web dev

Full Stack developer from Pune. Crazy about React-js and the whole React ecosystem.

## Responses 2

Markdown supported · ⌘↵ to post

[Bhawna Chauhan](https://hashnode.com/@ConnectBhawna)

[Oct 15, 2021](https://hashnode.com/posts/how-to-create-custom-overlay-component-in-react-leaflet-using-leaflet-velocity/6167a03c53401f641ba15ed0/comment/6168e70953401f641ba176f4)

Very informative ✨

[prem kulkarni](https://hashnode.com/@kulkarniprem04)

[Oct 15, 2021](https://hashnode.com/posts/how-to-create-custom-overlay-component-in-react-leaflet-using-leaflet-velocity/6167a03c53401f641ba15ed0/comment/6168e70953401f641ba176f4#reply-61694d2453401f641ba17eb1)

Thankyou 🙌

[laukik chavan](https://hashnode.com/@Laukik1306)

[Oct 14, 2021](https://hashnode.com/posts/how-to-create-custom-overlay-component-in-react-leaflet-using-leaflet-velocity/6167a03c53401f641ba15ed0/comment/6167a85d18374f2573278548)

Very informative. 😊 Thank you so much I want to try something like this but not finding the right steps to take but following your blog it become so easy to use.

[prem kulkarni](https://hashnode.com/@kulkarniprem04)

[Oct 14, 2021](https://hashnode.com/posts/how-to-create-custom-overlay-component-in-react-leaflet-using-leaflet-velocity/6167a03c53401f641ba15ed0/comment/6167a85d18374f2573278548#reply-6167aca453401f641ba15f9d)

Glad I could help 😇
