Modified Cat's stops & paths

Filtered out book-only paths in TV mode
made path arrows optional
This commit is contained in:
Ryan Carpenter
2016-08-02 23:15:13 +08:00
parent 3d7b5824b6
commit 82d62d7c4e
4 changed files with 22 additions and 12 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ angular.module('quartermaester')
$scope.mapModels.heraldry = $scope.options.houseHeraldry ? $filter('qmSlider')(qmData.heraldry, $scope.slider) : [];
$scope.mapModels.characters = $filter('qmSlider')(qmData.characterMarkers, $scope.slider, $scope.options);
$scope.mapModels.paths = $filter('qmSlider')(qmData.characterPaths, $scope.slider, $scope.options);
// console.log("qmData.characterPaths", qmData.characterPaths);
//console.log("mapModels.paths", $scope.mapModels.paths);
}
+15 -7
View File
@@ -372,6 +372,12 @@ angular.module('quartermaester')
var firstChapter = getChapterId(path.firstChapter);
var firstEpisode = getEpisodeId(path.firstEpisode);
var waypoints = qmData.waypointArrays[path.key].map(waypointModel);
var icons = [];
if (path.arrows=="TRUE") icons.push({
icon: { path: 2 }, //google.maps.SymbolPath.BACKWARD_OPEN_ARROW
offset: '25px',
repeat: '100px'
});
return {
key: "path-" + index,
@@ -382,14 +388,16 @@ angular.module('quartermaester')
weight: 3
},
static: true,
icons: [{
icon: { path: 2 }, //google.maps.SymbolPath.BACKWARD_OPEN_ARROW
offset: '25px',
repeat: '100px'
}],
icons: icons,
timing: {
episodes: [firstEpisode, 999],
chapters: [firstChapter, 999]
episodes: [
firstEpisode,
(firstEpisode==-1) ? -1 : 999
],
chapters: [
firstChapter,
(firstChapter==-1) ? -1 : 999
]
}
};
}