- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 210
 
Description
Apologies if this issue has already been raised and addressed. I looked at the closed issues and didn't see this so I wanted to bring up a bug that I am currently facing. Additionally, this is the first issue I've raised on GitHub so if I leave out any pertinent information let me know and I'll include it.
I am simply trying to enable the dropping of a pin with the Geocoder plugin and then draw a rectangle with the Draw plugin. For the sake of troubleshooting I tried other shapes and the issue seems to exist with those as well. I also tried a handful of different Geocoder providers to no avail.
dependencies:
folium==0.19.5
streamlit_folium==0.24.0
streamlit==1.41.1
mvp to reproduce:
import folium 
from streamlit_folium import st_folium
from folium.plugins import Draw, Geocoder
def search_area():
    m = folium.Map()
    Draw().add_to(m)
    Geocoder().add_to(m)
    st_folium(m, 
              height=350, 
              use_container_width=True)
steps to reproduce:
- use the geocoder to drop a pin at the following coordinates: 43.089774, -76.209267
 - select the rectangle in the draw tool bar
 - try to draw a rectangle
 
On mouse release to end the drawing, the draw tool seems to be getting stuck in a loop where the mouse release triggers the beginning of a new drawing.