With this lines I can center the leaflet marker on popupopen:
map.on('popupopen', function(e) {
map.setView(e.target._popup._latlng, e.target._zoom);
});
So far, so good. But I want that the marker gets some more spaces to the top (for example +200px) of the map edge on popupopen. How can I add "x pixels vertical from the center" on popupopen?
Leaflet: Website