Disable elevation module on IE & Edge.
This commit is contained in:
@@ -391,32 +391,35 @@ function initSpotMessages(aoMessages, aoTracks, bNoFeed) {
|
||||
oScale = L.control.scale({imperial: false, 'position':'bottomright'}).addTo(oMap);
|
||||
|
||||
//Controls: Elevation
|
||||
var oElev = L.control.elevation({
|
||||
collapsed: true,
|
||||
position: "bottomright",
|
||||
width: getElevWidth(),
|
||||
height: 129,
|
||||
hoverNumber: {
|
||||
decimalsX: 0, //distance (km)
|
||||
decimalsY: 0 //elevation (m)
|
||||
},
|
||||
theme: 'spot-theme',
|
||||
onExpand: function(){$('.leaflet-control-scale').hide();},
|
||||
onCollapse: function(){$('.leaflet-control-scale').show();}
|
||||
}).addTo(oMap);
|
||||
self.tmp('elev', oElev);
|
||||
if(!isIE() && !isMobile()) {
|
||||
var oElev = L.control.elevation({
|
||||
collapsed: true,
|
||||
position: "bottomright",
|
||||
width: getElevWidth(),
|
||||
height: 129,
|
||||
hoverNumber: {
|
||||
decimalsX: 0, //distance (km)
|
||||
decimalsY: 0 //elevation (m)
|
||||
},
|
||||
theme: 'spot-theme',
|
||||
onExpand: function(){$('.leaflet-control-scale').hide();},
|
||||
onCollapse: function(){$('.leaflet-control-scale').show();}
|
||||
}).addTo(oMap);
|
||||
self.tmp('elev', oElev);
|
||||
}
|
||||
|
||||
//Controls: Tiles (layers): Add & Move to Settings Panel
|
||||
L.control.layers(aoLayers, null, {position: 'topleft'}).addTo(oMap);
|
||||
$('#layers').empty().append($('.leaflet-control-layers-list .leaflet-control-layers-base'));
|
||||
|
||||
//Tracks, colors & popup
|
||||
//Actual Tracks: Track with corresponding colors
|
||||
var oActualTracks = L.geoJson(aoTracks, {
|
||||
style: function(oTrack) {
|
||||
return self.tmp(['track-type-styles', oTrack.properties.type]);
|
||||
}
|
||||
}).addTo(oMap);
|
||||
|
||||
//"Hover" Tracks: Wider track (thus hover area) to avoid flickering popups
|
||||
self.tmp('track', L.geoJson(aoTracks, {
|
||||
style: {weight: 20, opacity: 0},
|
||||
onEachFeature: function(feature, oLayer) {
|
||||
@@ -501,7 +504,7 @@ function initSpotMessages(aoMessages, aoTracks, bNoFeed) {
|
||||
asTrailMarkers.end.remove();
|
||||
});
|
||||
|
||||
(oElev.addData.bind(oElev))(feature, oLayer);
|
||||
if(!isIE() && !isMobile()) (oElev.addData.bind(oElev))(feature, oLayer);
|
||||
}
|
||||
}
|
||||
}).addTo(oMap));
|
||||
@@ -703,7 +706,7 @@ function getPost(asPost) {
|
||||
}
|
||||
|
||||
function getWmtsApiUrl(sMapId, iLat, iLng, iZoom) {
|
||||
return self.consts.geo_server+'/?a=tile&id='+sMapId+'&z='+iZoom+'&x='+iLng+'&y='+iLat;
|
||||
return self.consts.geo_server+'?a=tile&id='+sMapId+'&z='+iZoom+'&x='+iLng+'&y='+iLat;
|
||||
}
|
||||
|
||||
function getMediaLink(asData, sType) {
|
||||
|
||||
Reference in New Issue
Block a user