Notifications
Clear all

Pop up always visible without clicking on the marker in leaflet  

  RSS

Ganesh A
(@ganesh)
Noble Member
Joined: 4 months ago
Posts: 1170
23/03/2021 11:50 am  

How to enable pop up always visible without clicking on the marker everytime in the map?


Quote
Abhijith
(@abhijith)
Noble Member
Joined: 4 months ago
Posts: 1161
23/03/2021 11:50 am  

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))

ReplyQuote
Share: