-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening multiple popups simultaneously #13
Comments
Just to understand your query properly, do you want to a) prevent closing of open popups when opening another one, or |
Actually I want to open all popups (e.g. on app start) by code, for all the markers. Then, on-demand, the user could close some - but that's a feature with lower priority. |
Like this: library(mapview) # for the data
library(leaflet)
library(leafpop)
brew = breweries[1:2, ]
leaflet() %>%
addTiles() %>%
addCircleMarkers(
data = brew
) %>%
addPopups(
lat = st_coordinates(brew)[, 2]
, lng = st_coordinates(brew)[, 1]
, popup = popupTable(brew)
, options = popupOptions(closeOnClick = FALSE)
) ? |
The 1st popup still closes when I open another popup. I have to apply these 2 options:
but |
Do you have some reproducible code? |
Hi- Thank you so much for this package- it's really great. I have 2 questions that are similar to this:
Thanks again! O |
Hi @DEQorudlof
HTH |
Hi Tim- Thanks for the quick response! I wonder if you could take a quick look at the code that I'm using that is not doing this for me. I don't have a reprex so if there's nothing you could see without one I understand, but maybe you'll see some obvious solution that I don't see: leaf <-leaflet() %>% I keep getting a pandoc error: I don't suppose you have any idea why that would happen? The funny thing is I don't get the error when I do one or the other, it only occurs when I do both. |
Hi,
this is a nice, useful a package. Love it. However, I tried to open multiple popups at the same time, and could not get a solution. On
https://stackoverflow.com/questions/38957585/how-can-i-open-multiple-popups-in-leaflet-marker-at-a-time there are some hints, but work directly on the map instead of the layer. Any idea how to solve this?
Thx, M
The text was updated successfully, but these errors were encountered: