st.map() function doesn't work properly. Whenever I feed a pandas dataframe with lat and lon it shows the map, but I have to zoom to the desired state level to see the plotted dots.
What are the steps we should take to reproduce the bug:
Please visit the link to my GitHub gist given in the additional information section, and run the code. It will plot the points and show the map. However, you'll have to zoom to Washington DC to see the plotted points. Also, I tried using the zoom parameter in st.map() function, but still have to zoom in to Washington DC to see the plotted points.
It should automatically hover to the state or city wherever the latitude and longitudes belong to and show the plotted points. We should not need to zoom in and hover over the map to see the plotted coordinates manually.
Explain the buggy behavior you experience when you go through the steps above.
If applicable, add screenshots to help explain your problem.
no
link to the code: https://gist.github.com/ShivamBhirud/908a665b0a46cc2415a2dd95e1f63784
Hey @ShivamBhirud, thanks for writing up the bug report!
I was just taking a look at your data. It looks like this isn’t a bug, but instead is due to a large range of latitude values (from ‘8.9056997’ to ‘42.6795631304348’).
Would you mind checking your data and trying again?
The st.map widget should center the map based on your imputed data.
@dcaminos Sure, I'll try it as you instructed. Thanks!
Hey @dcaminos,
I have the same issue as @ShivamBhirud where the scatter points are plotted but aren't visible unless you zoom-in. I understand this is because my datapoints cover a large range of latitude values.
I would like to know if there is a way to make the points bigger, thus making the points visible without having to zoom-in. My goal is to be able to pinpoint a location on a map (see enclosed image).
Thanks and best wishes for 2020 :-)
Most helpful comment
Hey @dcaminos,
I have the same issue as @ShivamBhirud where the scatter points are plotted but aren't visible unless you zoom-in. I understand this is because my datapoints cover a large range of latitude values.
I would like to know if there is a way to make the points bigger, thus making the points visible without having to zoom-in. My goal is to be able to pinpoint a location on a map (see enclosed image).
Thanks and best wishes for 2020 :-)