summaryrefslogtreecommitdiffstats
path: root/configuration.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:45:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:45:13 +0000
commita4a4a84d79e95d34f80346c423b4e84f7af3f03d (patch)
tree91608c01e82676102457ffff2219f321ec474657 /configuration.php
parentInitial commit. (diff)
downloadicingaweb2-module-map-a4a4a84d79e95d34f80346c423b4e84f7af3f03d.tar.xz
icingaweb2-module-map-a4a4a84d79e95d34f80346c423b4e84f7af3f03d.zip
Adding upstream version 1.1.0.upstream/1.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'configuration.php')
-rw-r--r--configuration.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/configuration.php b/configuration.php
new file mode 100644
index 0000000..61c7201
--- /dev/null
+++ b/configuration.php
@@ -0,0 +1,35 @@
+<?php
+$section = $this->menuSection(N_('Maps'), array('icon' => 'globe'));
+
+$mapModule = $section->add(N_($this->translate('Default map')), array(
+ 'icon' => 'globe',
+ 'description' => $this->translate('Visualize your hosts and services on a map'),
+ 'url' => 'map',
+ 'priority' => 10
+));
+
+// stylesheets
+$this->provideCssFile('vendor/leaflet.css');
+$this->provideCssFile('vendor/MarkerCluster.css');
+$this->provideCssFile('vendor/MarkerCluster.Default.css');
+$this->provideCssFile('vendor/L.Control.Locate.css');
+$this->provideCssFile('vendor/easy-button.css');
+$this->provideCssFile('vendor/leaflet.awesome-markers.css');
+$this->provideCssFile('vendor/leaflet.modal.css');
+
+// javascript libraries
+$this->provideJsFile('vendor/spin.js');
+$this->provideJsFile('vendor/leaflet.js');
+$this->provideJsFile('vendor/leaflet.spin.js');
+$this->provideJsFile('vendor/leaflet.markercluster.js');
+$this->provideJsFile('vendor/L.Control.Locate.js');
+$this->provideJsFile('vendor/easy-button.js');
+$this->provideJsFile('vendor/leaflet.awesome-markers.js');
+$this->provideJsFile('vendor/Leaflet.Modal.js');
+
+// configuration menu
+$this->provideConfigTab('config', array(
+ 'title' => $this->translate('Configure the map module'),
+ 'label' => $this->translate('Configuration'),
+ 'url' => 'config'
+));