Skip to content

Commit

Permalink
Merge pull request #93 from ede0m/refac_thumbnail_fv_73
Browse files Browse the repository at this point in the history
Refac thumbnail fv 73
  • Loading branch information
mbucknell committed Aug 1, 2017
2 parents eed3755 + 5ca24c3 commit 7a70155
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 560 deletions.
6 changes: 3 additions & 3 deletions floodviz/static/js/floodviz_onready.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ document.addEventListener('DOMContentLoaded', function (event) {
var hydro_options = {
'height': FV.hydrograph_dimensions.height,
'width': FV.hydrograph_dimensions.width,
'display_ids': FV.hydrograph_display_ids,
'div_id': '#hydrograph'
};

var map_figure = FV.mapmodule(map_options);
var hydro_figure = FV.hydromodule(hydro_options);
var hydro_figure = hydromodule(hydro_options);

// Use frames to link interactions
var map_to_hydro = {
Expand All @@ -41,7 +42,6 @@ document.addEventListener('DOMContentLoaded', function (event) {
//data for hydrograph
d3.json(FV.hydrograph_data_path, function (error, data) {
if (error) { console.error(error); }
hydro_options['data'] = data;
hydro_figure.init(map_to_hydro);
hydro_figure.init(map_to_hydro, data);
});
});
Loading

0 comments on commit 7a70155

Please sign in to comment.