remove old unneeded variables
This commit is contained in:
parent
cb9997fc0c
commit
240325eada
1 changed files with 1 additions and 3 deletions
|
@ -537,9 +537,7 @@ c3nav = {
|
|||
}
|
||||
c3nav._levelControl.setLevel(level);
|
||||
if (bounds) {
|
||||
var left = 0,
|
||||
top = (left === 0) ? $('#search').height()+10 : 10,
|
||||
target = c3nav.map._getBoundsCenterZoom(bounds, c3nav._add_map_padding({})),
|
||||
var target = c3nav.map._getBoundsCenterZoom(bounds, c3nav._add_map_padding({})),
|
||||
center = c3nav.map._limitCenter(target.center, target.zoom, c3nav.map.options.maxBounds);
|
||||
if (nofly) {
|
||||
c3nav.map.flyTo(center, target.zoom, { animate: false });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue