diff --git a/application/controllers/Logbookadvanced.php b/application/controllers/Logbookadvanced.php
index 615e0c061..124e0e91d 100644
--- a/application/controllers/Logbookadvanced.php
+++ b/application/controllers/Logbookadvanced.php
@@ -93,6 +93,7 @@ class Logbookadvanced extends CI_Controller {
'assets/js/sections/itumap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/itumap_geojson.js")),
'assets/js/leaflet/L.Terminator.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet/L.Terminator.js")),
'assets/js/leaflet/geocoding.js',
+ 'assets/js/globe/globe.gl.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/globe/globe.gl.js")),
];
$this->load->view('interface_assets/header', $data);
diff --git a/application/controllers/Map.php b/application/controllers/Map.php
index c6d99a86c..158f7bece 100644
--- a/application/controllers/Map.php
+++ b/application/controllers/Map.php
@@ -25,4 +25,17 @@ class Map extends CI_Controller {
echo json_encode(array_merge($plot_array, $station_array));
}
+ // Generic fonction for return Json for MAP //
+ public function glob_plot() {
+ $footerData = [];
+ $footerData['scripts'] = [
+ 'assets/js/globe/globe.gl.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/globe/globe.gl.js")),
+ 'assets/js/sections/globe.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/globe.js")),
+ ];
+ $this->load->view('interface_assets/header');
+ $this->load->view('globe/index');
+ $this->load->view('interface_assets/footer',$footerData);
+
+ }
+
}
diff --git a/application/views/globe/index.php b/application/views/globe/index.php
new file mode 100644
index 000000000..39aadb1a9
--- /dev/null
+++ b/application/views/globe/index.php
@@ -0,0 +1 @@
+
diff --git a/application/views/logbookadvanced/index.php b/application/views/logbookadvanced/index.php
index 110d63cbd..11eed4c3d 100644
--- a/application/views/logbookadvanced/index.php
+++ b/application/views/logbookadvanced/index.php
@@ -422,7 +422,13 @@ $options = json_decode($options);
-
+
diff --git a/assets/images/earth-blue-marble.jpg b/assets/images/earth-blue-marble.jpg
new file mode 100644
index 000000000..e673a7c5e
Binary files /dev/null and b/assets/images/earth-blue-marble.jpg differ
diff --git a/assets/images/earth-night.jpg b/assets/images/earth-night.jpg
new file mode 100644
index 000000000..688918088
Binary files /dev/null and b/assets/images/earth-night.jpg differ
diff --git a/assets/js/globe/globe.gl.d.ts b/assets/js/globe/globe.gl.d.ts
new file mode 100644
index 000000000..b91438dd7
--- /dev/null
+++ b/assets/js/globe/globe.gl.d.ts
@@ -0,0 +1,132 @@
+import { WebGLRendererParameters, Light, Scene, Camera, WebGLRenderer, Object3D } from 'three';
+import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
+import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
+import { ConfigOptions as ConfigOptions$1, ThreeGlobeGeneric } from 'three-globe';
+
+interface ConfigOptions extends ConfigOptions$1 {
+ rendererConfig?: WebGLRendererParameters
+}
+
+type Accessor = Out | string | ((obj: In) => Out);
+type ObjAccessor = Accessor