call update_map_locations() after load_state()
This commit is contained in:
parent
432df73df7
commit
11c2d1616a
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ c3nav = {
|
||||||
var state = JSON.parse($('main').attr('data-state'));
|
var state = JSON.parse($('main').attr('data-state'));
|
||||||
history.replaceState(state, window.location.path);
|
history.replaceState(state, window.location.path);
|
||||||
c3nav.load_state(state, true);
|
c3nav.load_state(state, true);
|
||||||
|
c3nav.update_map_locations();
|
||||||
c3nav._push_state(state, true);
|
c3nav._push_state(state, true);
|
||||||
if (!state.center) c3nav.update_map_state(true);
|
if (!state.center) c3nav.update_map_state(true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue