# Help Needed: Integrating Leaflet.js (Drag & Select Map) into WeWeb

**URL:** https://community.weweb.io/t/help-needed-integrating-leaflet-js-drag-select-map-into-weweb/18640
**Category:** How do I?
**Tags:** weweb, workflows, supabase, custom-components, bug
**Created:** [June 7, 2025, 11:53am UTC](https://community.weweb.io/t/help-needed-integrating-leaflet-js-drag-select-map-into-weweb/18640 "2025-06-07T11:53:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nandhakumar](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@Nandhakumar](https://community.weweb.io/u/Nandhakumar)
#### Post date: [June 7, 2025, 11:53am UTC](https://community.weweb.io/t/help-needed-integrating-leaflet-js-drag-select-map-into-weweb/18640/1 "2025-06-07T11:53:03Z")

</div>

Hi everyone,

I’m Nandhakumar, and I’m currently working on a project using the **[WeWeb.io](http://WeWeb.io)** platform. I’m trying to integrate **Leaflet.js** into my WeWeb app to create a map that allows users to **drag and select areas** —for example, selecting a district or zone to find nearby hospitals, grocery stores, or other points of interest.

So far, I’ve:

- Connected WeWeb with **custom code**.
- Attempted to initialize Leaflet using both **WeWeb AI and ChatGPT**.
- Followed multiple steps, but I keep running into issues like “ **map container not found** ” or **nothing rendering after preview**.

I’m unsure whether I’m missing some key configuration steps or if WeWeb requires a specific setup for third-party libraries like Leaflet.

I’m very eager to learn and improve my knowledge of WeWeb, and I believe solving this would help me (and others) in building interactive location-based features.

If anyone has:

- Successfully integrated Leaflet with WeWeb,
- Faced and solved a similar problem,
- Or has any suggestions or resources,

This is my linked-in id: **[https://www.linkedin.com/in/nandhakumar-b-m-134a26273/](https://www.linkedin.com/in/nandhakumar-b-m-134a26273/)**

---

<div class="post-metadata">

### Author: ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)
#### Post date: [June 7, 2025, 5:20pm UTC](https://community.weweb.io/t/help-needed-integrating-leaflet-js-drag-select-map-into-weweb/18640/2 "2025-06-07T17:20:45Z")

</div>

Why don’t you share the repo?

---

<div class="post-metadata">

### Author: ![Antiokh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/antiokh/32/2794_2.png) [@Antiokh](https://community.weweb.io/u/Antiokh)
#### Post date: [November 3, 2025, 2:06pm UTC](https://community.weweb.io/t/help-needed-integrating-leaflet-js-drag-select-map-into-weweb/18640/3 "2025-11-03T14:06:19Z")

</div>

probably that’s because he’s creating it with WeWeb AI which doesn’t create a repo.
