pandorafms/pandora_console/include/javascript/map/MapController.js

40 lines
1.1 KiB
JavaScript
Raw Normal View History

2016-02-04 13:11:14 +01:00
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// Constructor
var MapController = function(target) {
this._target = target;
this._id = $(target).data('id');
2016-02-04 13:11:14 +01:00
}
// Atributes
MapController.prototype._id = null;
// Methods
MapController.prototype.init_map = function() {
$(this._target + " svg").append(
$("<g>").append(
$("<circle>")
.attr("id", "node_10")
.attr("class", "node")
.attr("cx", "100")
.attr("cy", "100")
.attr("style", "fill: rgb(128, 186, 39);")
.attr("r", "5")
)
);
};