player tracker

- line colour changed to yellow - easier to see on map
- track time changed from 1 to 3 hours
This commit is contained in:
Jon Atkins 2013-03-17 01:33:33 +00:00
parent d4a9042e48
commit 9a581061e1
2 changed files with 5 additions and 2 deletions

View File

@ -5,3 +5,4 @@ Since the last version from breunigs, the following changes have been made
* Fix up URLs to point to new hosting (icons, etc).
* Removed forced redirect from http to https - it should work on either now.
* Player tracker: change line colour to yellow, increase time to 3 hours

View File

@ -18,9 +18,11 @@ if(typeof window.plugin !== 'function') window.plugin = function() {};
// PLUGIN START ////////////////////////////////////////////////////////
window.PLAYER_TRACKER_MAX_TIME = 60*60*1000; // in milliseconds
window.PLAYER_TRACKER_MAX_TIME = 3*60*60*1000; // in milliseconds
window.PLAYER_TRACKER_MIN_ZOOM = 9;
window.PLAYER_TRACKER_LINE_COLOUR = '#FFFF00';
// use own namespace for plugin
window.plugin.playerTracker = function() {};
@ -249,7 +251,7 @@ window.plugin.playerTracker.drawData = function() {
var opts = {
weight: 2-0.25*i,
color: '#FF00FD',
color: PLAYER_TRACKER_LINE_COLOUR,
clickable: false,
opacity: 1-0.2*i,
dashArray: "5,8"