-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The track feature is a set of lines each of which is composed of points with position and strictly monotonically increasing time. There are utility functions for setting a start and end time. Two points are interpolated along the track line: one each for the start and end times. A marker or text value can be rendered at the end time. Internally, the track is rendered as three line features; one for all the points before the start time, one for the start to the end time, and one for the end time onward. Additional a marker and/or text feature is used to render the track heads.
- Loading branch information
Showing
16 changed files
with
1,590 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var inherit = require('../inherit'); | ||
var registerFeature = require('../registry').registerFeature; | ||
var trackFeature = require('../trackFeature'); | ||
|
||
/** | ||
* Create a new instance of class trackFeature. | ||
* | ||
* @class | ||
* @alias geo.canvas.trackFeature | ||
* @extends geo.trackFeature | ||
* @param {geo.trackFeature.spec} arg | ||
* @returns {geo.canvas.trackFeature} | ||
*/ | ||
var canvas_trackFeature = function (arg) { | ||
'use strict'; | ||
if (!(this instanceof canvas_trackFeature)) { | ||
return new canvas_trackFeature(arg); | ||
} | ||
|
||
arg = arg || {}; | ||
trackFeature.call(this, arg); | ||
|
||
var object = require('./object'); | ||
object.call(this); | ||
|
||
this._init(arg); | ||
return this; | ||
}; | ||
|
||
inherit(canvas_trackFeature, trackFeature); | ||
|
||
// Now register it | ||
registerFeature('canvas', 'track', canvas_trackFeature); | ||
module.exports = canvas_trackFeature; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var inherit = require('../inherit'); | ||
var registerFeature = require('../registry').registerFeature; | ||
var trackFeature = require('../trackFeature'); | ||
|
||
/** | ||
* Create a new instance of class trackFeature. | ||
* | ||
* @class | ||
* @alias geo.svg.trackFeature | ||
* @extends geo.trackFeature | ||
* @param {geo.trackFeature.spec} arg | ||
* @returns {geo.svg.trackFeature} | ||
*/ | ||
var svg_trackFeature = function (arg) { | ||
'use strict'; | ||
if (!(this instanceof svg_trackFeature)) { | ||
return new svg_trackFeature(arg); | ||
} | ||
|
||
arg = arg || {}; | ||
trackFeature.call(this, arg); | ||
|
||
var object = require('./object'); | ||
object.call(this); | ||
|
||
this._init(arg); | ||
return this; | ||
}; | ||
|
||
inherit(svg_trackFeature, trackFeature); | ||
|
||
// Now register it | ||
registerFeature('svg', 'track', svg_trackFeature); | ||
module.exports = svg_trackFeature; |
Oops, something went wrong.