Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

limit map servers for godia2 https access #946

Merged
merged 1 commit into from
Nov 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions tds/src/main/webapp/godiva2/js/godiva2.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,18 @@ window.onload = function()
seazone_wms.setVisibility(false);*/

// 2016-05-20 - srtm_dem, ol_wms and human_wms not responding - disabling layers.
map.addLayers([demis_wms, bluemarble_demis_wms, bluemarble_wms, /*srtm_dem, ol_wms, human_wms,*/ northPoleBaseLayer, southPoleBaseLayer, drawinglayer/*, seazone_wms, essi_wms*/]);

map.setBaseLayer(demis_wms);
if (location.protocol === 'https:') {
map.addLayers(
[bluemarble_wms, northPoleBaseLayer, southPoleBaseLayer, drawinglayer]);
map.setBaseLayer(bluemarble_wms);
} else {
map.addLayers(
[demis_wms, bluemarble_demis_wms, bluemarble_wms, /*srtm_dem, ol_wms, human_wms,*/
northPoleBaseLayer, southPoleBaseLayer, drawinglayer/*, seazone_wms, essi_wms*/]);
map.setBaseLayer(demis_wms);
}

projectionCode = map.baseLayer.projection.getCode();

// Make sure the Google Earth and Permalink links are kept up to date when
Expand Down