Commit 3cf0412e authored by Caillat Michel's avatar Caillat Michel
Browse files

Added statistics, tooltips activation and sliceViewer as a parameter to YAFITSContourGUI.connect

parent 5b0ca68f
......@@ -31,6 +31,9 @@
<script src="../javascript/FITSHeaderTable.js"></script>
<script src="../javascript/olqv_utils.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<!-- Conditional code generation -->
<%if(useSAMP){%>
<script src="../javascript/samp.js"></script>
......@@ -305,6 +308,8 @@ function SliceViewer ( relFITSFilePath, width, height, RADECRangeInDegrees, FITS
let _sliceIndex;
let _statistics;
var _interaction_mode;
_relFITSFilePath=relFITSFilePath;
......@@ -720,6 +725,8 @@ var _marker_styles_f = function(feature) {
}
else {
_data_steps_1 = resp["result"]["data_steps"];
_statistics = resp["result"]["statistics"];
console.log(JSON.stringify(_statistics, 0, 4));
var path_to_png = resp["result"]["path_to_png"];
console.log("path_to_png="+path_to_png);
if (_im_layer_1) {
......@@ -772,6 +779,10 @@ var _marker_styles_f = function(feature) {
return _map_1;
}
this.getStatistics = function() {
return _statistics;
}
this.refresh = function() {
console.log("refresh: entering")
_updateSliceWithPOST();
......@@ -1037,6 +1048,9 @@ var SAMPPublisher = function ( FITSHeader, connector) {
$( document ).ready(function() {
console.log("$( document ).ready(function() {: entering");
$('[data-tooltip="tooltip"]').tooltip();
//$("a#jupyter").attr("href", "https://romeo.obspm.fr:8500/user/partemix/notebooks/openURL.ipynb?kernel_name=python3&?Variable1="+relFITSFilePath+"&?kernel_name=python3");
<%if(useSAMP){%>
console.log("Yes we use SAMP");
......@@ -1175,7 +1189,7 @@ $( document ).ready(function() {
customControls.addButton(yAFITSContoursViewer.getButton());
yAFITSContoursGUI = new ContoursGUI();
yAFITSContoursGUI.connect(yAFITSContoursViewer);
yAFITSContoursGUI.connect(yAFITSContoursViewer, sliceViewer);
$('a#rccap').click(function () {sliceViewer.refresh()});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment