mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Working the javascript objects for the new maps.
This commit is contained in:
parent
9307a6e77e
commit
87b07ee5ef
@ -12,12 +12,20 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
// Constructor
|
||||
var MapController = function(target) {
|
||||
this._target = target;
|
||||
|
||||
console.log(this._id);
|
||||
}
|
||||
|
||||
// Atributes
|
||||
MapController.prototype._id = 333;
|
||||
|
||||
|
||||
// Methods
|
||||
MapController.prototype.init_map = function() {
|
||||
$("#" + this._target + " svg").append(
|
||||
$(this._target + " svg").append(
|
||||
$("<g>").append(
|
||||
$("<circle>")
|
||||
.attr("id", "node_10")
|
||||
@ -28,8 +36,5 @@ MapController.prototype.init_map = function() {
|
||||
.attr("r", "5")
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
MapController.prototype.test333 = function(aaa) {
|
||||
console.log(aaa);
|
||||
}
|
||||
|
||||
};
|
@ -16,5 +16,5 @@ var NetworkmapController = function(target) {
|
||||
MapController.call(this, target);
|
||||
}
|
||||
|
||||
NetworkmapController.prototype = new MapController();
|
||||
NetworkmapController.prototype = Object.create(MapController.prototype);
|
||||
NetworkmapController.prototype.constructor = NetworkmapController;
|
Loading…
x
Reference in New Issue
Block a user