diff --git a/web/src/main/webapp/index.xhtml b/web/src/main/webapp/index.xhtml index 1ddd25e9f4a381e31fd993633b1c0aae9eab7963..9afd5862685531e8f8b7c0e0a66488fbbac16f0d 100644 --- a/web/src/main/webapp/index.xhtml +++ b/web/src/main/webapp/index.xhtml @@ -45,73 +45,11 @@ function initMap(){ customTouchInterface: windowsTouchInterface, debug:minerva.GuiConnector.getParams['debug']!==undefined, }); -<<<<<<< HEAD }).then(function(result){ customMap = result; }).catch(function(rejectReason){ minerva.GuiConnector.alert(rejectReason); }); -======= - logger.debug(configuration); - - ServerConnector.setCustomMap(customMap); - GuiConnector.showGoogleMap(); - - ServerConnector.addOverlayCollection(new OverlayCollection(customMap, "search")); - ServerConnector.addOverlayCollection(new OverlayCollection(customMap, "missingConnection")); - ServerConnector.addOverlayCollection(new OverlayCollection(customMap, "drug",true, true)); - ServerConnector.addOverlayCollection(new OverlayCollection(customMap, "chemical",#{chemicalMB.linkedToDisease()}, #{chemicalMB.linkedToDisease() == true})); - ServerConnector.addOverlayCollection(new OverlayCollection(customMap, "mirna",true, true)); - ServerConnector.addOverlayCollection(new OverlayCollection(customMap, "comment",false, true)); - - customMap.refreshOverlays(); - - - if (GuiConnector.getParams["search"]!=undefined) { - searchPanel.search(GuiConnector.getParams["search"]); - } - - if (GuiConnector.getParams["comments"]=="on") { - document.getElementById('comment_checkbox').click(); - } - if (GuiConnector.getParams["layout"]!=undefined) { - for (var i=0;i<configuration.MAPS.length;i++){ - if (configuration.MAPS[i].name===GuiConnector.getParams["layout"]) { - if (configuration.MAPS[i].inputDataAvailable==="true") { - customMap.addSelectedLayout(configuration.MAPS[i].idObject, GuiConnector.getParams["layout"]) - } else { - customMap.openLayoutByName(GuiConnector.getParams["layout"]) - } - } - } - } - - } - //when I try to hide legend from the beginning or in the same thread it's hidden forever... ;/ - setTimeout(function() { - GuiConnector.hideLegend(); - var submodelId = GuiConnector.getParams["submap"]; - if (submodelId!=undefined) { - _createSubmodelDialog([{name:'submodelId', value: submodelId}]); - //for some reason the call above is not sync (even though it's required) - var waitingForResponse = setInterval(function() { - if (GuiConnector.getJsPopupForSubmodelId(submodelId)!=null) { - GuiConnector.openDialog(submodelId); - clearInterval(waitingForResponse); - if (GuiConnector.getParams["zoom"]!=undefined){ - customMap.setZoom(submodelId,parseInt(GuiConnector.getParams["zoom"])); - } - if (GuiConnector.getParams["x"]!=undefined && GuiConnector.getParams["y"]!=undefined){ - var x = GuiConnector.getParams["x"]; - var y = GuiConnector.getParams["y"]; - var point = new google.maps.Point(x, y); - customMap.setCenter(submodelId,point); - } - } - },100); - } - }, 0); ->>>>>>> refs/remotes/origin/genomics } //]]>