Skip to content

Seemingly infinite drawing after dropping pin with geocoder plugin #248

@xnolandx

Description

@xnolandx

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:

  1. use the geocoder to drop a pin at the following coordinates: 43.089774, -76.209267
  2. select the rectangle in the draw tool bar
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions