Is it possible to create a popup that can be positioned relative to the screen layout, rather than by having to use lat and long co-ordinates?
I want to be able to have a single popup that can be opened / closed when a marker is clicked, the docs show the following example code:
var popup = L.popup()
.setLatLng(latlng)
.setContent('<p>Hello world!<br />This is a nice popup.</p>')
.openOn(map);
However, I want the popup to be absolutely positioned relative to the screen layout, not relative to a marker or similar - in other words, open a poup in a fixed position on the screen regardless of where the marker is that is clicked to fire the event to open the marker. I can't see how I can do this using lat/long because that will always change depending on map scrolling, zoom levels etc.
Do I need to create something that inherits from DivOverlay in order to achieve what I need or is there a simpler ready-made solution?
Many thanks!