Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
tmuguet committed Oct 3, 2017
2 parents 7b131d2 + 820de8b commit ae82823
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<link rel="apple-touch-icon-precomposed" href="ico/logo-medium-57.png">

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/map2gpx.min.css" />

<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>

Expand Down Expand Up @@ -79,6 +78,8 @@

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tether-drop/1.4.2/css/drop-theme-arrows.min.css" integrity="sha256-/QPHkS0U/zX5IkcTHsRU2AMYUq7fi4fwPWqRBXF+WSQ=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether-drop/1.4.2/js/drop.min.js" integrity="sha256-JCUUk3sUBrBY4l7yTK/BLKRZSC8DTHo25st8OlfjO8g=" crossorigin="anonymous"></script>

<link rel="stylesheet" href="css/map2gpx.min.css" />
</head>

<body>
Expand Down
8 changes: 5 additions & 3 deletions js/map2gpx.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1025,9 +1025,10 @@ L.GeoJSON.include({
});

var current = marker;
while (current && current.getType() != 'step' && current.hasRouteToHere()) {
while (current && current.hasRouteToHere()) {
current.getRouteToHere().setPopupContentWith(current._previousMarker.getColorCode(), local);
current = current._previousMarker;
if (current.getType() == 'step') break;
}

local = _this._initStats();
Expand Down Expand Up @@ -1070,9 +1071,10 @@ L.GeoJSON.include({

if (local.distance > 0) {
var current = $.Track.getLastMarker();
while (current && current.getType() != 'step' && current.hasRouteToHere()) {
while (current && current.hasRouteToHere()) {
current.getRouteToHere().setPopupContentWith(current._previousMarker.getColorCode(), local);
current = current._previousMarker;
if (current.getType() == 'step') break;
}
}

Expand Down Expand Up @@ -2004,7 +2006,7 @@ window.onload = function () {
marker.setOpacity(1);
});

$btn.attr('disabled', 'disabled');
$btn.removeAttr('disabled');
importPopup.remove();

$.State.triggerMarkersChanged();
Expand Down
2 changes: 1 addition & 1 deletion js/map2gpx.min.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions js/map2gpx.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,11 @@ L.GeoJSON.include({
});

var current = marker;
while (current && current.getType() != 'step' && current.hasRouteToHere()) {
while (current && current.hasRouteToHere()) {
current.getRouteToHere().setPopupContentWith(current._previousMarker.getColorCode(), local);
current = current._previousMarker;
if (current.getType() == 'step')
break;
}

local = _this._initStats();
Expand Down Expand Up @@ -1138,9 +1140,11 @@ L.GeoJSON.include({

if (local.distance > 0) {
var current = $.Track.getLastMarker();
while (current && current.getType() != 'step' && current.hasRouteToHere()) {
while (current && current.hasRouteToHere()) {
current.getRouteToHere().setPopupContentWith(current._previousMarker.getColorCode(), local);
current = current._previousMarker;
if (current.getType() == 'step')
break;
}
}

Expand Down Expand Up @@ -2092,7 +2096,7 @@ window.onload = function () {
marker.setOpacity(1);
});

$btn.attr('disabled', 'disabled');
$btn.removeAttr('disabled');
importPopup.remove();

$.State.triggerMarkersChanged();
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": "map2gpx",
"version": "1.1.0",
"version": "1.1.1",
"description": "map2gpx is a web application that lets you trace paths on maps (for hiking for instance) and export them to GPX or KML formats.\\n",
"main": "n/a",
"private": true,
Expand Down
8 changes: 6 additions & 2 deletions src/js/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,11 @@
});

var current = marker;
while (current && current.getType() != 'step' && current.hasRouteToHere()) {
while (current && current.hasRouteToHere()) {
current.getRouteToHere().setPopupContentWith(current._previousMarker.getColorCode(), local);
current = current._previousMarker;
if (current.getType() == 'step')
break;
}

local = _this._initStats();
Expand Down Expand Up @@ -353,9 +355,11 @@

if (local.distance > 0) {
var current = $.Track.getLastMarker();
while (current && current.getType() != 'step' && current.hasRouteToHere()) {
while (current && current.hasRouteToHere()) {
current.getRouteToHere().setPopupContentWith(current._previousMarker.getColorCode(), local);
current = current._previousMarker;
if (current.getType() == 'step')
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ window.onload = function () {
marker.setOpacity(1);
});

$btn.attr('disabled', 'disabled');
$btn.removeAttr('disabled');
importPopup.remove();

$.State.triggerMarkersChanged();
Expand Down

0 comments on commit ae82823

Please sign in to comment.