Skip to content

Commit

Permalink
little dots to ends path for width less than 3px
Browse files Browse the repository at this point in the history
  • Loading branch information
elisabethP committed Mar 25, 2018
1 parent 58a686d commit 454ee51
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion dist/lfh-front-min.1.7.0.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/lfh-front-min.1.8.0.js

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//need to be very carefull with the replace version number
//there are in files readme others version numbers: for releases, tested browsers, and the most important wordpress

var old_version = '1.6.0';
var version = '1.7.0';
var old_version = '1.7.0';
var version = '1.8.0';
var gulp = require('gulp');
var less = require('gulp-less');
var minify = require('gulp-minify');
Expand Down
Binary file added images/markers/pointS6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions js/lfh-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,14 @@ lfh.POINT_ICON = L.icon({
shadowAnchor: [5, 5],
popupAnchor: [5, 5]
});

lfh.MINI_POINT_ICON = L.icon({
iconUrl: lfh.ICON_URL + '/markers/pointS6.png',
iconSize: [6, 6],
shadowSize: [0, 0],
iconAnchor: [3, 3],
shadowAnchor: [3, 3],
popupAnchor: [3, 3]
});
lfh.WIDTH_LIMIT = 620;

// height of window under the map (without the title)
Expand Down Expand Up @@ -829,8 +836,8 @@ lfh.Map = function(i){
isLoaded: false,
elem_id: track_id,
marker_options: {
startIcon: lfh.POINT_ICON,
endIcon: lfh.POINT_ICON,
startIcon: _data.gpx[j].width> 2 ? lfh.POINT_ICON:lfh.MINI_POINT_ICON,
endIcon: _data.gpx[j].width> 2 ? lfh.POINT_ICON:lfh.MINI_POINT_ICON,
//shadowUrl: 'images/pin-shadow.png'
}
}).on('loaded', function(e) {
Expand Down
4 changes: 2 additions & 2 deletions lf-hiker.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: A responsive and mobile friendly plugin to display gpx track with profile elevation.
Author: epointal
Author URI: http://elisabeth.pointal.org/
Version: 1.7.0
Version: 1.8.0
License: GPL2
Text domain: lfh
*/
Expand Down Expand Up @@ -50,7 +50,7 @@ function boolval( $var ){

class Lf_Hiker_Plugin
{
const VERSION = '1.7.0';
const VERSION = '1.8.0';

private static $_controller;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lf-hiker",
"version": "1.7.0",
"version": "1.8.0",
"description": "plugin for wordpress for display track with profil elevation",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 8 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Lf Hiker
[![Contributor: Elisabeth Pointal](https://github.com/epointal/lf-hiker/blob/master/assets/svg/contributor2.svg)](http://elisabeth.pointal.org)
[![License GPL 2](https://github.com/epointal/lf-hiker/blob/master/assets/svg/license.svg)](http://www.gnu.org/licenses/gpl-2.0.html )
[![Version 1.7.0](https://github.com/epointal/lf-hiker/blob/master/assets/svg/version1.7.0.svg)](https://github.com/epointal/lf-hiker/archive/1.7.0.zip)
[![Version 1.8.0](https://github.com/epointal/lf-hiker/blob/master/assets/svg/version1.8.0.svg)](https://github.com/epointal/lf-hiker/archive/1.8.0.zip)

Plugin site web: [Lf Hiker](http://elisabeth.pointal.org/lf-hiker/en/about/ )
Requires Wordpress version: 4.7.3
Expand Down Expand Up @@ -110,7 +110,7 @@ If you have any questions about the method, do not hesitate to [contact me](http

### Perform a new installation

After downloading the ZIP file [lf-hiker-1.7.0.zip](https://github.com/epointal/lf-hiker/archive/1.7.0.zip)
After downloading the ZIP file [lf-hiker-1.8.0.zip](https://github.com/epointal/lf-hiker/archive/1.8.0.zip)

1. Unzip `lf-hiker.zip`
2. Put the folder `lf-hiker` in directory `wp-content/plugins`
Expand Down Expand Up @@ -139,6 +139,12 @@ After downloading the ZIP file [lf-hiker-1.7.0.zip](https://github.com/epointal/


## Changelog
### 1.8.0 ###
* Evolution: Add black in color path
* Evolution: Enable all hexadecimal color for path
* Evolution: Little dots at ends for path with width less than 3px
* Fixed: german translation

### 1.7.0 ###
* Fixed: no path displayed with mesmerize theme
* Evolution: add tiles Stamen Terrain
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tags: map, GPX, hiker, runner, track, path, trail, leaflet, profile, openstreetm
Requires at least: 4.7.3
Tested up to: 4.9
Stable tag: 1.0
Version: 1.7.0
Version: 1.8.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -96,7 +96,7 @@ If you think you found a bug in **Lf Hiker** or have any problem/question concer
### Supported languages
* Français (fr_FR)
* English (en_US)
* Deutsch (de_DE) by [Kristof Kling](https://lg-buggingen.de/bugginger-feierabendlauf/strecke/)
* Deutsch (de_DE) by [Kristof Kling](https://lg-buggingen.de/bugginger-feierabendlauf/strecke/)

If you need language of **Lf Hiker** which is not included. You can easily translate with poedit from the file :
`lf-hiker/languages/lfh-default.po`.
Expand Down Expand Up @@ -134,6 +134,12 @@ From zip archive
7. You can change the default configuration in tab: `Settings → Lf-hiker`

== Changelog ==
= 1.8.0 =
* Evolution: Add black in color path
* Evolution: Enable all hexadecimal color for path
* Evolution: Little dots at ends for path with width less than 3px
* Fixed: german translation

= 1.7.0 =
* Fixed: no path displayed with mesmerize theme
* Evolution: add tiles Stamen Terrain
Expand Down

0 comments on commit 454ee51

Please sign in to comment.