# Interactive map marker

**URL:** <https://community.plotly.com/t/interactive-map-marker/33896>\
**Category:** 📊 Plotly Python\
**Created:** [January 20, 2020, 9:49pm UTC](https://community.plotly.com/t/interactive-map-marker/33896 "2020-01-20T21:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leofernandeso](https://avatars.discourse-cdn.com/v4/letter/l/ac8455/32.png) [@leofernandeso](https://community.plotly.com/u/leofernandeso)\
**Post date:** [January 20, 2020, 9:49pm UTC](https://community.plotly.com/t/interactive-map-marker/33896/1 "2020-01-20T21:49:11Z")

</div>

Hi,

I would like to know if it is possible to use interactive markers using the scattermapbox. For example: If the user clicks on the marker on the map, I want the app to call a callback function in order to draw another plot. Is this possible?

Thank you very much!

---

<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:** [February 13, 2020, 6:01pm UTC](https://community.plotly.com/t/interactive-map-marker/33896/2 "2020-02-13T18:01:36Z")

</div>

I am not sure about the default Plotly maps, but you can do it with Dash Leaflet. Just add a the appropriate callback to the map click event, see e.g. example 1 here,

> <https://github.com/thedirtyfew/dash-leaflet/blob/master/usage_gallery.py#L23>
