-
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.
Merge pull request #1040 from OpenGeoscience/track-feature
Add a track feature.
- 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.