diff --git a/pandora_console/include/class/Map.class.php b/pandora_console/include/class/Map.class.php
index 0bd585f8c3..c53b69b171 100644
--- a/pandora_console/include/class/Map.class.php
+++ b/pandora_console/include/class/Map.class.php
@@ -21,23 +21,48 @@
* @subpackage Maps
*/
-class Map {
+abstract class Map {
protected $id = null;
+ protected $type = null;
+ protected $subtype = null;
+
+ protected $requires_js = null;
+
public function __construct($id) {
$this->id = $id;
+
+ $this->loadDB();
+
+ $this->requires_js = array();
+ $this->requires_js[] = "include/javascript/d3.3.5.14.js";
+ //~ $this->requires_js[] = "include/javascript/map/MapController.js";
}
+ private function loadDB() {
+ $row = db_get_row_filter('tmap', array('id' => $this->id));
+
+ $this->type = $row['type'];
+ $this->subtype = $row['subtype'];
+ }
+
+ abstract function print_js_init();
+
public function show() {
+
+ foreach ($this->requires_js as $js) {
+ echo "" . "\n";
+ }
+
?>
-
-