pad bounds before drawing labels
This commit is contained in:
parent
e8817e1aa4
commit
f8e6080941
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue