pad location label bounds a bit less for more performance
This commit is contained in:
parent
2bc18ecd2e
commit
ef5ef51d98
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ c3nav = {
|
||||||
if (!c3nav._labelControl.labelsActive) return;
|
if (!c3nav._labelControl.labelsActive) return;
|
||||||
c3nav._labelLayer.clearLayers();
|
c3nav._labelLayer.clearLayers();
|
||||||
var labels = c3nav.labels[c3nav._levelControl.currentLevel],
|
var labels = c3nav.labels[c3nav._levelControl.currentLevel],
|
||||||
bounds = c3nav.map.getBounds().pad(0.25),
|
bounds = c3nav.map.getBounds().pad(0.15),
|
||||||
zoom = c3nav.map.getZoom();
|
zoom = c3nav.map.getZoom();
|
||||||
if (!labels) return;
|
if (!labels) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue