# Binding labels to geojson features in dash leaflet

**URL:** https://community.plotly.com/t/binding-labels-to-geojson-features-in-dash-leaflet/71738
**Category:** Dash Python
**Created:** [January 18, 2023, 5:38pm UTC](https://community.plotly.com/t/binding-labels-to-geojson-features-in-dash-leaflet/71738 "2023-01-18T17:38:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bruzzy](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bruzzy](https://community.plotly.com/u/bruzzy)
#### Post date: [January 18, 2023, 5:38pm UTC](https://community.plotly.com/t/binding-labels-to-geojson-features-in-dash-leaflet/71738/1 "2023-01-18T17:38:48Z")

</div>

I have seen tooltips in Dash Leaflet, but haven’t seen bound labels to the features in dl.GeoJSON. Is there a way to do that?  
I would think using labels in addition to, or instead of, markers would be common.  
Thanks

---

<div class="post-metadata">

### Author: ![Emil](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emil/32/31734_2.png) [@Emil](https://community.plotly.com/u/Emil)
#### Post date: [January 18, 2023, 6:43pm UTC](https://community.plotly.com/t/binding-labels-to-geojson-features-in-dash-leaflet/71738/2 "2023-01-18T18:43:20Z")

</div>

Just add a property with the name ‘tooltip’ to the data, then it should render autonatically.

---

<div class="post-metadata">

### Author: ![bruzzy](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bruzzy](https://community.plotly.com/u/bruzzy)
#### Post date: [January 18, 2023, 7:03pm UTC](https://community.plotly.com/t/binding-labels-to-geojson-features-in-dash-leaflet/71738/3 "2023-01-18T19:03:02Z")

</div>

Is the info in the tooltip field visible only when the feature is moused over, rather than a permanent label?  
Thanks

---

<div class="post-metadata">

### Author: ![bruzzy](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bruzzy](https://community.plotly.com/u/bruzzy)
#### Post date: [February 21, 2023, 4:37pm UTC](https://community.plotly.com/t/binding-labels-to-geojson-features-in-dash-leaflet/71738/4 "2023-02-21T16:37:33Z")

</div>

Ran across this old message. I discovered my error, which was simply creating a tooltip column that was equal to another column, but that other column was numeric. By creating a string that uses the other column, it works.  
Thanks
