pad bounds before drawing labels

This commit is contained in:
Laura Klünder 2019-12-22 23:18:32 +01:00
parent e8817e1aa4
commit f8e6080941

View file

@ -320,7 +320,7 @@ c3nav = {
if (!c3nav._labelControl.labelsActive) return;
c3nav._labelLayer.clearLayers();
var labels = c3nav.labels[c3nav._levelControl.currentLevel],
bounds = c3nav.map.getBounds(),
bounds = c3nav.map.getBounds().pad(0.25),
zoom = c3nav.map.getZoom();
if (!labels) return;