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, 2019 in Data Analytics by ch
• 3,380 points
56 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, 2019 by Cherukuri
• 32,440 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,560 points
82 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,680 points

edited Aug 28, 2018 by Vardhan 68 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
71 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
35 views
0 votes
1 answer

plot map points from a dataframe

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

answered Sep 17, 2019 in Data Analytics by priya
40 views
0 votes
1 answer

How to add external markers in maps?

Use external markers by creating icons using ...READ MORE

answered Oct 14, 2019 in Data Analytics by Cherukuri
• 32,440 points
30 views
0 votes
0 answers

fix the map area using leaflet and use ggplot

I created a map using leaflet and ...READ MORE

Sep 18, 2019 in Data Analytics by anonymous
• 32,440 points
25 views
0 votes
1 answer

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

See below example, > p = colorFactor(palette = ...READ MORE

answered Oct 28, 2019 in Data Analytics by anonymous
• 32,440 points
195 views
0 votes
1 answer

Add buttons to perform actions on the leaflet map.

@ch, You can add easy buttons to add ...READ MORE

answered Oct 14, 2019 in Data Analytics by Cherukuri
• 32,440 points
94 views