Commit c4538cc6 authored by Dietmar's avatar Dietmar

fixed ssh osm und sos

parent 9d2bfe48
......@@ -297,7 +297,6 @@ function transformFeatures(features, sourceEPSG, destEPSG) {
}
function refreshPlatforms() {
TIMESTEPSXML = {};
DEPTHSTEPSXML = {};
MAPSERVICESXML = {};
......
......@@ -44,7 +44,7 @@ if (document.location.href.indexOf('localhost') > 0 || document.location.href.in
} else {
// HZG-Webserver
SERVER_PREFIX = document.location.protocol + '//' + 'bn.hzg.de' + '/geoserver/';
NOKIS_SERVER_PREFIX = document.location.protocol + '//' + 'bn.hzg.de' + '/nokis/';
NOKIS_SERVER_PREFIX = document.location.protocol + '//' + 'kofserver2.hzg.de' + '/nokis/';
}
var FEATURE_NS = "http://www.gkss.de/namespace/gml/hzg"; // Test: hzg, Produktion: gkss;
......@@ -120,9 +120,9 @@ SELECTION_TOLERANCE = 0.2;
var BG_LAYER;
if (MAP_PROJECTION == 'EPSG:900913' || MAP_PROJECTION == 'EPSG:3857') {
BG_LAYER = {name: 'OSM', url: 'http://kofserver3.hzg.de/tilecache/'};
BG_LAYER = {name: 'OSM', url: 'http://coastmap.hzg.de/tilecache/'};
} else {
BG_LAYER = {name: 'OSM4326', url: 'http://kofserver3.hzg.de/tilecache/'};
BG_LAYER = {name: 'OSM4326', url: 'http://coastmap.hzg.de/tilecache/'};
}
// 4. Formular und Linkliste
......
......@@ -620,7 +620,9 @@ function CodmPlatformsUI() {
}
// metadataURL = 'http://kofserver2.hzg.de/codm/templates/metadata.html?link=http://kofserver2.hzg.de/nokis/' + // + NOKIS_SERVER_PREFIX +
metadataURL = 'templates/metadata.html?link=' + NOKIS_SERVER_PREFIX +
// beginn change didi
metadataURL = 'https://kofserver2.hzg.de/codm/templates/metadata.html?link=' + NOKIS_SERVER_PREFIX +
//metadataURL = 'templates/metadata.html?link=' + NOKIS_SERVER_PREFIX +
'servants/~Render;recordId;' + id + '%26format;xml%26download;false%26locale;de&' + bbox;
var metadataLink = document.createElement('A');
metadataLink.id = id + '_metadata_link';
......@@ -1169,7 +1171,11 @@ function CodmPlatformsUI() {
if (xmlDownloadServiceElm) {
serviceURL = createServiceURL(xmlDownloadServiceElm, geodataStart, geodataEnd);
console.log("serviceURL",serviceURL);
// didi cheat weil meta url nicht neue sos.py
if (serviceURL.indexOf("http://sos.hzg.de/sos.py") != -1) {
serviceURL = serviceURL.replace("http://sos.hzg.de/","https://coastmap.hzg.de/coastmap/cgi-bin/sos/");
}
serviceLink = document.createElement('A');
serviceLink.target = '_blank';
serviceLink.href = serviceURL;
......
......@@ -79,7 +79,7 @@ function downloadsInit(urlAndGeodataId) {
//alert(downloadUrl);
//downloadUrl = encodeURIComponent(downloadUrl);
console.log("downloadurl",downloadUrl);
var chkInput = document.createElement('input');
chkInput.type = 'checkbox';
......
Markdown is supported
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