Remove scale on feeds display (mobile)
This commit is contained in:
@@ -51,15 +51,12 @@ self.onResize = function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function toggleFeedPanel(bShow, bTriggerResize) {
|
function toggleFeedPanel(bShow) {
|
||||||
bTriggerResize = bTriggerResize || true;
|
|
||||||
var $Container = $('#projects');
|
var $Container = $('#projects');
|
||||||
if(typeof bShow === 'undefined') $Container.toggleClass('with-feed');
|
if(typeof bShow === 'undefined') $Container.toggleClass('with-feed');
|
||||||
else $Container.toggleClass('with-feed', bShow);
|
else $Container.toggleClass('with-feed', bShow);
|
||||||
|
|
||||||
oSpot.tmp('with_feed', $Container.hasClass('with-feed'));
|
oSpot.tmp('with_feed', $Container.hasClass('with-feed'));
|
||||||
|
|
||||||
if(bTriggerResize) setTimeout(function() {oSpot.onResize();}, 500);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function isMobile() {
|
function isMobile() {
|
||||||
@@ -290,7 +287,7 @@ function initSpotMessages(aoMessages, aoTracks) {
|
|||||||
if(asProperties.Name != asProperties.description) $('<p>', {'class':'description'}).text(asProperties.description).appendTo($Tooltip);
|
if(asProperties.Name != asProperties.description) $('<p>', {'class':'description'}).text(asProperties.description).appendTo($Tooltip);
|
||||||
|
|
||||||
var aiCoords = feature.geometry.coordinates;
|
var aiCoords = feature.geometry.coordinates;
|
||||||
if(aiCoords) {
|
if(aiCoords && asProperties.type != 'hitchhiking') {
|
||||||
var iDistance = 0;
|
var iDistance = 0;
|
||||||
var iElevDrop = 0;
|
var iElevDrop = 0;
|
||||||
var iElevGain = 0;
|
var iElevGain = 0;
|
||||||
@@ -329,6 +326,8 @@ function initSpotMessages(aoMessages, aoTracks) {
|
|||||||
$('<p>', {'class':'detail'}).addIcon('fa-time fa-fw', true).append('~ '+iTimeHours+'h'+iTimeMinutes).appendTo($Tooltip);
|
$('<p>', {'class':'detail'}).addIcon('fa-time fa-fw', true).append('~ '+iTimeHours+'h'+iTimeMinutes).appendTo($Tooltip);
|
||||||
$('<p>', {'class':'detail'}).addIcon('fa-elev-gain fa-fw', true).append(iElevGain+'m').appendTo($Tooltip);
|
$('<p>', {'class':'detail'}).addIcon('fa-elev-gain fa-fw', true).append(iElevGain+'m').appendTo($Tooltip);
|
||||||
$('<p>', {'class':'detail'}).addIcon('fa-elev-drop fa-fw', true).append(iElevDrop+'m').appendTo($Tooltip);
|
$('<p>', {'class':'detail'}).addIcon('fa-elev-drop fa-fw', true).append(iElevDrop+'m').appendTo($Tooltip);
|
||||||
|
|
||||||
|
(oElev.addData.bind(oElev))(feature, oLayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
oLayer
|
oLayer
|
||||||
@@ -340,8 +339,6 @@ function initSpotMessages(aoMessages, aoTracks) {
|
|||||||
.on('mouseout', function(e) {
|
.on('mouseout', function(e) {
|
||||||
e.target.closePopup();
|
e.target.closePopup();
|
||||||
});
|
});
|
||||||
|
|
||||||
if(asProperties.type != 'hitchhiking') (oElev.addData.bind(oElev))(feature, oLayer);
|
|
||||||
}
|
}
|
||||||
}).addTo(oMap);
|
}).addTo(oMap);
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
.leaflet-right {
|
.leaflet-right {
|
||||||
width: calc(100% - 44px - 2 * #{$block-spacing});
|
width: calc(100% - 44px - 2 * #{$block-spacing});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.leaflet-control-container .leaflet-bottom.leaflet-right {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-control-container {
|
.leaflet-control-container {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user