Skip to content

Commit

Permalink
move line not displayed on little screen + list always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
epointal committed Feb 27, 2018
1 parent d2356ae commit 69d1f59
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Controller/Front.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public function map_shortcode($atts, $html =null){
$atts = array();
}
$options = Lfh_Model_Map::filter_map_data($atts);

if(self::$_lfh_map_count == 0){
//if the first map in the page/article add a div for the fade in bottom fullscreen
// @todo (can do this with js)
Expand Down Expand Up @@ -174,7 +173,6 @@ private function add_map_scripts($options){
$data .= '
lfh.data['.$map_count.']= {
map: '.json_encode($options, JSON_NUMERIC_CHECK ).',
OPEN_PROFILE: '. ($options["open"] == true?'true':'false') .',
markers: new Array(),
gpx: new Array()
};
Expand Down
3 changes: 3 additions & 0 deletions css/lfh-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ Version: 1.0
text-align: center;
clear: none;
}
.leaflet-control .lfh-control-list.lfh-hidden {
display: none;
}
.lfh-control-fullscreen:hover,
.lfh-control-refresh:hover,
.lfh-control-list:hover {
Expand Down
3 changes: 3 additions & 0 deletions css/lfh-style.less
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
text-align:center;
clear:none;
}
.leaflet-control .lfh-control-list.lfh-hidden{
display:none;
}
.lfh-control-fullscreen:hover,
.lfh-control-refresh:hover,
.lfh-control-list:hover{
Expand Down
2 changes: 1 addition & 1 deletion dist/lfh-front-min.1.5.0.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lfh-style-min.1.5.0.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions js/lfh-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ lfh.Map = function(i){
var _map_id = 'lfh-'+i;
var _index = i;
var _data = lfh.data[i];
var _OPEN_PROFILE = lfh.data[i].OPEN_PROFILE;
var _OPEN_PROFILE = false;
var _large = true; // "big screen"
var _center = [0,0];//[48.866667,2.333333];//default value Paris if not in data
var _zoom = 13; // default value if not in data
Expand All @@ -549,6 +549,7 @@ lfh.Map = function(i){
function _initialize( i ){
_data = lfh.data[i];
var d = lfh.data[i].map;
_OPEN_PROFILE = d.open;
d.i = i;
_auto_center = d.autocenter;
_list = d.list;
Expand Down Expand Up @@ -1245,7 +1246,7 @@ lfh.Profile = function( map, layer, dom, move, unit, unit_h){
if(x>220){
x = 220;
}
x = parseInt(x );
_track.querySelector('.lfh-move-line').setAttribute('transform','translate(' + x + ',0)');

var km = x * _max_km/220;
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ After downloading the ZIP file [lf-hiker-1.5.0.zip](https://github.com/epointal/
* Ability to show/hide gpx path when more than 2 paths
* Ability to globally configure default settings: fullscreen, button download, start with profile displayed, add checkbox to display/hide gpx
* Fixed: some points without elevation value
* Fixed: button list always displayed when parameter list is false
* Fixed: move line on profile not visible on little screen

### 1.4.2 ###
* fixed : issue 2 maps when the first floating the second is in stucks
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ From zip archive
* Ability to show/hide gpx path when more than 2 paths
* Ability to globally configure default settings: fullscreen, button download, start with profile displayed, add checkbox to display/hide gpx
* Fixed: some points without elevation value
* Fixed: button list always displayed when parameter list is false
* Fixed: move line on profile not visible on little screen

= 1.4.2 =
* fixed : issue 2 maps when the first floating the second is in stucks
Expand Down

0 comments on commit 69d1f59

Please sign in to comment.