I am trying to zoom in on a marker and put an offset to the left because there is a sidebar. My code looks like this:
map.setView(marker._latlng, 14, { paddingTopLeft: [50, 0] });
Unfortunately the padding has no effect. Can anyone help?