Skip to content

Commit

Permalink
Merge pull request #155 from joker234/patch-1
Browse files Browse the repository at this point in the history
Removed MapSurfer
  • Loading branch information
aAXEe authored Jan 21, 2022
2 parents a38af1b + 129388d commit a8cb356
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@
var layer_tidalscale; // 16
var layer_permalink; // 17
var layer_waterdepth_trackpoints_100m; // 18
var layer_elevation_profile_contours; // 19
var layer_elevation_profile_hillshade; // 20
var layer_waterdepth_trackpoints_10m; // 21
var layer_waterdepth_contours; // 22

Expand Down Expand Up @@ -249,10 +247,6 @@ function readLayerCookies() {
document.getElementById('checkLayerWaterDepthTrackPoints').checked = depth10mVisible || depth100mVisible
showWaterDepthTrackPoints();

var profileVisible = getCookie("ElevationProfileLayerVisible") === "true"
layer_elevation_profile_contours.setVisibility(profileVisible);
layer_elevation_profile_hillshade.setVisibility(profileVisible);

if (getCookie("CompassroseVisible") === "true") {
document.getElementById("checkCompassrose").checked = true
toggleCompassrose();
Expand Down Expand Up @@ -280,7 +274,6 @@ function resetLayerCheckboxes()
//document.getElementById("checkLayerSatPro").checked = (layer_satpro.getVisibility() === true);
setWaterDepthBoxes();
document.getElementById("checkDepthContours").checked = (layer_waterdepth_contours.getVisibility() === true);
document.getElementById("checkLayerElevationProfile").checked = (layer_elevation_profile_contours.getVisibility() === true || layer_elevation_profile_hillshade.getVisibility() === true);
document.getElementById("checkCompassrose").checked = (document.getElementById("compassRose").style.visibility === 'visible');

createPermaLink();
Expand Down Expand Up @@ -502,18 +495,6 @@ function showContours() {
setCookie("WaterDepthContoursVisible", visibleNew);
}

function showElevationProfile() {
if (layer_elevation_profile_contours.visibility) {
layer_elevation_profile_contours.setVisibility(false);
layer_elevation_profile_hillshade.setVisibility(false);
setCookie("ElevationProfileLayerVisible", "false");
} else {
layer_elevation_profile_contours.setVisibility(true);
layer_elevation_profile_hillshade.setVisibility(true);
setCookie("ElevationProfileLayerVisible", "true");
}
}

// Show Wikipedia layer
function showWikipediaLinks(sub) {
if (sub) {
Expand Down Expand Up @@ -924,36 +905,6 @@ function drawmap() {
});
layer_waterdepth_trackpoints_100m = waterDepthTrackPoints100m.getLayer();

// Elevation Profile
layer_elevation_profile_contours = new OpenLayers.Layer.TMS(
'MapSurfer ASTER GDEM contour lines (layer 13-17)',
'https://maps.heigit.org/openmapsurfer/tiles/asterc/webmercator/',
{
layerId : 19,
type : 'png',
getURL : getTileURL,
displayOutsideMaxExtent : true,
isBaseLayer : false,
maxResolution : 19.109257068634033,
// minResolution : 1.194328566789627,
visibility : false
}
);
layer_elevation_profile_hillshade = new OpenLayers.Layer.TMS(
'Mapsurfer ASTER GDEM and SRTM Hillshade',
'https://maps.heigit.org/openmapsurfer/tiles/asterh/webmercator/',
{
layerId : 20,
type : 'png',
getURL : getTileURL,
displayOutsideMaxExtent : true,
isBaseLayer : false,
minResolution : 19.109257068634033,
visibility : false
}
);
layer_elevation_profile_hillshade.setOpacity(0.75);

layer_waterdepth_contours = new OpenLayers.Layer.WMS("Contours", "http:///osm.franken.de/cgi-bin/mapserv.fcgi?",
{
layers: ['contour','contour2'],
Expand All @@ -967,8 +918,6 @@ function drawmap() {
map.addLayers([
layer_mapnik,
layer_bing_aerial,
layer_elevation_profile_contours,
layer_elevation_profile_hillshade,
// layer_gebco_deepshade,
layer_gebco_deeps_gwc,
layer_seamark,
Expand Down

0 comments on commit a8cb356

Please sign in to comment.