improve route nofly logic
This commit is contained in:
parent
97db5dc6e3
commit
78d09a0c0c
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ c3nav = {
|
|||
load_state: function (state, nofly) {
|
||||
c3nav._locationinput_set($('#origin-input'), state.origin);
|
||||
c3nav._locationinput_set($('#destination-input'), state.destination);
|
||||
c3nav._sidebar_state_updated(state, (nofly && state.center));
|
||||
c3nav._sidebar_state_updated(state, state.center);
|
||||
if (state.center) {
|
||||
c3nav._levelControl.setLevel(state.level);
|
||||
var center = c3nav.map._limitCenter(L.GeoJSON.coordsToLatLng(state.center), state.zoom, c3nav.map.options.maxBounds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue