Pop up always visible without clicking on the marker in leaflet

0 votes
How to enable pop up always visible without clicking on the marker everytime in the map?
Sep 23 in Data Analytics by ch
• 1,470 points
10 views

1 answer to this question.

0 votes

@Ch,

Pop-up cannot be enabled by default. Another way is to keep the pop up from closing when pressed on the map or other markers on the map.

See the below example.

closeButton, closeOnClick disables popup from closing when clicked on other markers and on the map.

leaflet() %>% addTiles() %>% addCircleMarkers(lng=77.6944, lat=12.9811,popup = "My Office",color = "red",popupOptions = popupOptions(closeButton=F, closeOnClick=F))

Hope it helps!

answered Sep 23 by Cherukuri
• 26,880 points

Related Questions In Data Analytics

0 votes
1 answer

Plotting multiple graphs on the same page in R

If you want to plot 4 graphs ...READ MORE

answered Mar 27, 2018 in Data Analytics by Bharani
• 4,550 points
56 views
0 votes
1 answer

How can I import a file in R without giving the destination/file path to the specified file?

You can use the window explorer to ...READ MORE

answered Aug 28, 2018 in Data Analytics by Anmol
• 3,620 points

edited Aug 28, 2018 by Vardhan 49 views
0 votes
1 answer

Splunk Cluster instalation document was not uploaded in the cource.

Dear Learner, Greetings ! We would like to inform ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
56 views
0 votes
1 answer

Hide and show labels by default in maps

Hi, You need to just add an attribute ...READ MORE

answered Sep 23 in Data Analytics by Cherukuri
• 26,880 points
8 views
0 votes
1 answer

plot map points from a dataframe

Hi Peter, Use below code. leaflet(df) %>% addTiles() %>% ...READ MORE

answered Sep 17 in Data Analytics by priya
14 views
0 votes
0 answers

How to add external markers in maps?

How to add external markers in maps? READ MORE

Sep 17 in Data Analytics by ruchitha
13 views
0 votes
0 answers

How to add legend or any text on the map in leaflet?

I'm new to leaflet and working on ...READ MORE

Sep 18 in Data Analytics by anonymous
• 26,880 points
17 views
0 votes
2 answers

How to count the number of elements with the values in a vector?

Use dplyr function group_by(). > n = as.data.frame(num) > ...READ MORE

answered Aug 21 in Data Analytics by anonymous
• 26,880 points
114 views
0 votes
11 answers

Changing the legend title in ggplot

Hi, you can also try guides() to ...READ MORE

answered Jul 30 in Data Analytics by Cherukuri
• 26,880 points
5,756 views