Skip to content

Commit

Permalink
#106 try hostname for VPN
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuku Man committed May 18, 2020
1 parent 0a882d3 commit 557ec2a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions html/js/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,14 @@ function selectDataset(row, uid, dataname, heading, radardirection) {
has_coloring = checkwmslayer(uid,"coloring");
if (has_coloring) {
if (wmsgf9_samples[uid][4] == 0 ) {
highresoverlay = loadWMS(mapA, "http://149.165.168.89/geoserver/InSAR/wms?","InSAR:uid"+uid+"_unw");
highresoverlay = loadWMS(mapA, "http://js-168-89.jetstream-cloud.org/geoserver/InSAR/wms?","InSAR:uid"+uid+"_unw");
// load legend
var legend_kml = "http://149.165.168.89/uavsarlegend1/uid"+uid+"_unw_default.kmz"; }
var legend_kml = "http://js-168-89.jetstream-cloud.org/uavsarlegend1/uid"+uid+"_unw_default.kmz"; }
else {
//load user defined
var imagename = wmsgf9_samples[uid][4] ['image'];
var stylesld = wmsgf9_samples[uid][4] ['style'];
highresoverlay=loadWMSwithstyle(mapA, "http://149.165.168.89/geoserver/InSAR/wms?","InSAR:"+imagename,stylesld);
highresoverlay=loadWMSwithstyle(mapA, "http://js-168-89.jetstream-cloud.org/geoserver/InSAR/wms?","InSAR:"+imagename,stylesld);

var legend_kml = wmsgf9_samples[uid][4] ['kmz']+"?dummy="+(new Date()).getTime();};
wmsgf9_select_legend_kml = new google.maps.KmlLayer({
Expand All @@ -461,10 +461,10 @@ function selectDataset(row, uid, dataname, heading, radardirection) {
// disbale color stretch function

$("#get-area-minmax-button").attr('disabled');
highresoverlay = loadWMS(mapA, "http://149.165.168.89/geoserver/highres/wms?","highres:uid"+uid+"_unw");
highresoverlay = loadWMS(mapA, "http://js-168-89.jetstream-cloud.org/geoserver/highres/wms?","highres:uid"+uid+"_unw");
// load high-res legend
var legend_kml = "http://149.165.168.89/highreslegend/2pi.kmz";
if (parseInt(uid)<=369) {legend_kml = "http://149.165.168.89/highreslegend/pi.kmz";};
var legend_kml = "http://js-168-89.jetstream-cloud.org/highreslegend/2pi.kmz";
if (parseInt(uid)<=369) {legend_kml = "http://js-168-89.jetstream-cloud.org/highreslegend/pi.kmz";};
wmsgf9_select_legend_kml = new google.maps.KmlLayer({
url: legend_kml,
preserveViewport:true,
Expand All @@ -478,10 +478,10 @@ function selectDataset(row, uid, dataname, heading, radardirection) {

//if ($('#get-area-minmax-button').is(':visible')) {$("#get-area-minmax-button").css("display", "none");};
//$('#Strech-color-div').html('');
highresoverlay = loadWMS(mapA, "http://149.165.168.89/geoserver/highres/wms?","highres:uid"+uid+"_unw");
highresoverlay = loadWMS(mapA, "http://js-168-89.jetstream-cloud.org/geoserver/highres/wms?","highres:uid"+uid+"_unw");
// load high-res legend
var legend_kml = "http://149.165.168.89/highreslegend/2pi.kmz";
if (parseInt(uid)<=369) {legend_kml = "http://149.165.168.89/highreslegend/pi.kmz";};
var legend_kml = "http://js-168-89.jetstream-cloud.org/highreslegend/2pi.kmz";
if (parseInt(uid)<=369) {legend_kml = "http://js-168-89.jetstream-cloud.org/highreslegend/pi.kmz";};
wmsgf9_select_legend_kml = new google.maps.KmlLayer({
url: legend_kml,
preserveViewport:true,
Expand Down Expand Up @@ -737,9 +737,9 @@ function reset_color_api(){
wmsgf9_select_legend_kml.setMap(null);
mapA.overlayMapTypes.setAt(0, null);
//reload
highresoverlay = loadWMS(mapA, "http://149.165.168.89/geoserver/InSAR/wms?","InSAR:"+imagename);
highresoverlay = loadWMS(mapA, "http://js-168-89.jetstream-cloud.org/geoserver/InSAR/wms?","InSAR:"+imagename);
// load legend
var legend_kml = "http://149.165.168.89/uavsarlegend1/"+imagename+"_default.kmz";
var legend_kml = "http://js-168-89.jetstream-cloud.org/uavsarlegend1/"+imagename+"_default.kmz";
wmsgf9_select_legend_kml = new google.maps.KmlLayer({
url: legend_kml,
preserveViewport:true,
Expand Down Expand Up @@ -779,7 +779,7 @@ function new_color_api(){
//remove current wms
mapA.overlayMapTypes.setAt(0, null);
//reload wms
highresoverlay=loadWMSwithstyle(mapA, "http://149.165.168.89/geoserver/InSAR/wms?","InSAR:"+datajson['image'],datajson['style']);
highresoverlay=loadWMSwithstyle(mapA, "http://js-168-89.jetstream-cloud.org/geoserver/InSAR/wms?","InSAR:"+datajson['image'],datajson['style']);

// get uid from datajson['image'] = uid254_unw
//record datajson
Expand Down

0 comments on commit 557ec2a

Please sign in to comment.