datastake-daf 0.6.283 โ†’ 0.6.284

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,349 +0,0 @@
1
- import React, { useEffect, useRef } from 'react';
2
- import mapboxgl from 'mapbox-gl';
3
- import 'mapbox-gl/dist/mapbox-gl.css';
4
-
5
- /**
6
- * SimpleGlobeStraatosDebug - Aggressive CSS isolation for straatos environment
7
- * This component is specifically designed to work in straatos where Leaflet CSS
8
- * is globally loaded and interferes with Mapbox markers.
9
- *
10
- * USAGE:
11
- * 1. Copy this file to your straatos project
12
- * 2. Install mapbox-gl: npm install mapbox-gl
13
- * 3. Import and use: <SimpleGlobeStraatosDebug projects={yourProjects} />
14
- *
15
- * @param {Array} projects - Array of project objects with location data
16
- * @param {string} projects[].name - Project name
17
- * @param {number} projects[].latitude - Latitude coordinate
18
- * @param {number} projects[].longitude - Longitude coordinate
19
- * @param {string} projects[].projectDescription - Project description (optional)
20
- */
21
- const SimpleGlobeStraatosDebug = ({ projects = [] }) => {
22
- const mapContainer = useRef(null);
23
- const map = useRef(null);
24
-
25
- useEffect(() => {
26
- if (map.current) return;
27
-
28
- console.log('๐Ÿงช [STRAATOS DEBUG] Creating map with aggressive CSS isolation...');
29
-
30
- // Set Mapbox access token - REPLACE WITH YOUR TOKEN
31
- mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
32
-
33
- // Create minimal map
34
- map.current = new mapboxgl.Map({
35
- container: mapContainer.current,
36
- style: 'mapbox://styles/mapbox/satellite-v9',
37
- center: [0, 0],
38
- zoom: 2,
39
- projection: 'globe'
40
- });
41
-
42
- // Add markers when map loads
43
- map.current.on('load', () => {
44
- console.log('๐Ÿงช [STRAATOS DEBUG] Map loaded, adding test markers...');
45
-
46
- // AGGRESSIVE CSS ISOLATION - Override ALL Leaflet CSS
47
- const aggressiveStyle = document.createElement('style');
48
- aggressiveStyle.textContent = `
49
- /* AGGRESSIVE ISOLATION: Override ALL Leaflet CSS that affects Mapbox */
50
- .straatos-globe-debug-container {
51
- position: relative !important;
52
- width: 100% !important;
53
- height: 100% !important;
54
- overflow: hidden !important;
55
- }
56
-
57
- .straatos-globe-debug-container .mapboxgl-canvas-container {
58
- position: relative !important;
59
- left: 0 !important;
60
- top: 0 !important;
61
- transform: none !important;
62
- width: 100% !important;
63
- height: 100% !important;
64
- }
65
-
66
- .straatos-globe-debug-container .mapboxgl-canvas-container canvas {
67
- position: relative !important;
68
- left: 0 !important;
69
- top: 0 !important;
70
- transform: none !important;
71
- width: 100% !important;
72
- height: 100% !important;
73
- }
74
-
75
- /* Override Leaflet marker positioning */
76
- .straatos-globe-debug-container .mapboxgl-marker {
77
- position: absolute !important;
78
- left: auto !important;
79
- top: auto !important;
80
- transform: none !important;
81
- pointer-events: auto !important;
82
- z-index: 1000 !important;
83
- }
84
-
85
- /* Override Leaflet div icon styles */
86
- .straatos-globe-debug-container .mapboxgl-marker .straatos-debug-marker {
87
- position: relative !important;
88
- left: auto !important;
89
- top: auto !important;
90
- transform: none !important;
91
- width: 20px !important;
92
- height: 20px !important;
93
- background: #FF0000 !important;
94
- border: 2px solid white !important;
95
- border-radius: 50% !important;
96
- pointer-events: auto !important;
97
- cursor: pointer !important;
98
- box-shadow: 0px 3px 6px rgba(0,0,0,0.3) !important;
99
- }
100
-
101
- /* Override Leaflet pane positioning */
102
- .straatos-globe-debug-container .mapboxgl-marker-pane {
103
- position: absolute !important;
104
- left: 0 !important;
105
- top: 0 !important;
106
- transform: none !important;
107
- z-index: 600 !important;
108
- }
109
-
110
- /* Override Leaflet tile container */
111
- .straatos-globe-debug-container .mapboxgl-tile-container {
112
- position: absolute !important;
113
- left: 0 !important;
114
- top: 0 !important;
115
- transform: none !important;
116
- }
117
-
118
- /* Override Leaflet zoom animations */
119
- .straatos-globe-debug-container .mapboxgl-zoom-animated {
120
- transform-origin: 0 0 !important;
121
- }
122
-
123
- /* Override Leaflet interactive styles */
124
- .straatos-globe-debug-container .mapboxgl-marker.leaflet-interactive {
125
- cursor: pointer !important;
126
- }
127
-
128
- /* Override Leaflet popup positioning */
129
- .straatos-globe-debug-container .mapboxgl-popup {
130
- position: absolute !important;
131
- left: auto !important;
132
- top: auto !important;
133
- transform: none !important;
134
- z-index: 700 !important;
135
- }
136
-
137
- /* Override any Leaflet control positioning */
138
- .straatos-globe-debug-container .mapboxgl-ctrl-group {
139
- position: absolute !important;
140
- z-index: 1000 !important;
141
- }
142
-
143
- /* Override Leaflet attribution */
144
- .straatos-globe-debug-container .mapboxgl-ctrl-attrib {
145
- position: absolute !important;
146
- bottom: 0 !important;
147
- right: 0 !important;
148
- }
149
-
150
- /* Override any Leaflet tooltip positioning */
151
- .straatos-globe-debug-container .mapboxgl-popup-content {
152
- position: relative !important;
153
- left: auto !important;
154
- top: auto !important;
155
- transform: none !important;
156
- }
157
-
158
- /* Override Leaflet marker shadow */
159
- .straatos-globe-debug-container .mapboxgl-marker .mapboxgl-marker-shadow {
160
- display: none !important;
161
- }
162
-
163
- /* Override any Leaflet image layer positioning */
164
- .straatos-globe-debug-container .mapboxgl-image-layer {
165
- position: absolute !important;
166
- left: 0 !important;
167
- top: 0 !important;
168
- transform: none !important;
169
- }
170
-
171
- /* Override Leaflet overlay pane */
172
- .straatos-globe-debug-container .mapboxgl-overlay-pane {
173
- position: absolute !important;
174
- left: 0 !important;
175
- top: 0 !important;
176
- transform: none !important;
177
- z-index: 400 !important;
178
- }
179
-
180
- /* Override Leaflet shadow pane */
181
- .straatos-globe-debug-container .mapboxgl-shadow-pane {
182
- position: absolute !important;
183
- left: 0 !important;
184
- top: 0 !important;
185
- transform: none !important;
186
- z-index: 500 !important;
187
- }
188
-
189
- /* Override Leaflet tooltip pane */
190
- .straatos-globe-debug-container .mapboxgl-tooltip-pane {
191
- position: absolute !important;
192
- left: 0 !important;
193
- top: 0 !important;
194
- transform: none !important;
195
- z-index: 650 !important;
196
- }
197
-
198
- /* Override Leaflet popup pane */
199
- .straatos-globe-debug-container .mapboxgl-popup-pane {
200
- position: absolute !important;
201
- left: 0 !important;
202
- top: 0 !important;
203
- transform: none !important;
204
- z-index: 700 !important;
205
- }
206
- `;
207
- document.head.appendChild(aggressiveStyle);
208
-
209
- projects.forEach((project, index) => {
210
- console.log(`๐Ÿงช [STRAATOS DEBUG] Processing project ${index}:`, project);
211
-
212
- // Create simple marker with unique class
213
- const el = document.createElement('div');
214
- el.className = 'straatos-debug-marker';
215
- el.style.width = '20px';
216
- el.style.height = '20px';
217
- el.style.backgroundColor = '#FF0000';
218
- el.style.borderRadius = '50%';
219
- el.style.border = '2px solid white';
220
- el.style.cursor = 'pointer';
221
- el.style.boxShadow = '0px 3px 6px rgba(0,0,0,0.3)';
222
-
223
- // Get coordinates
224
- const lng = Number(project.longitude);
225
- const lat = Number(project.latitude);
226
-
227
- console.log(`๐Ÿงช [STRAATOS DEBUG] Coordinates for ${project.name}:`, {
228
- original: { longitude: project.longitude, latitude: project.latitude },
229
- processed: { lng, lat },
230
- valid: !isNaN(lng) && !isNaN(lat) && lng >= -180 && lng <= 180 && lat >= -90 && lat <= 90
231
- });
232
-
233
- if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
234
- console.error(`โŒ [STRAATOS DEBUG] Invalid coordinates for ${project.name}:`, { lng, lat });
235
- return;
236
- }
237
-
238
- // Create popup
239
- const popup = new mapboxgl.Popup({ offset: 25 })
240
- .setHTML(`
241
- <div style="padding: 8px;">
242
- <h3 style="margin: 0 0 8px 0; font-size: 14px;">${project.name}</h3>
243
- <p style="margin: 0; font-size: 12px; color: #666;">
244
- Lat: ${lat.toFixed(4)}, Lng: ${lng.toFixed(4)}
245
- </p>
246
- <p style="margin: 4px 0 0 0; font-size: 12px;">
247
- ${project.projectDescription || 'No description'}
248
- </p>
249
- </div>
250
- `);
251
-
252
- // Add marker with explicit positioning
253
- const marker = new mapboxgl.Marker({
254
- element: el,
255
- anchor: 'center'
256
- })
257
- .setLngLat([lng, lat])
258
- .setPopup(popup)
259
- .addTo(map.current);
260
-
261
- // Verify position after a delay
262
- setTimeout(() => {
263
- const markerLngLat = marker.getLngLat();
264
- const positionMatch = Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001;
265
-
266
- console.log(`๐Ÿ” [STRAATOS DEBUG] Position verification for ${project.name}:`, {
267
- expected: [lng, lat],
268
- actual: [markerLngLat.lng, markerLngLat.lat],
269
- match: positionMatch,
270
- difference: {
271
- lng: Math.abs(markerLngLat.lng - lng),
272
- lat: Math.abs(markerLngLat.lat - lat)
273
- }
274
- });
275
-
276
- if (!positionMatch) {
277
- console.error(`โŒ [STRAATOS DEBUG] Position mismatch for ${project.name}!`);
278
- }
279
- }, 200);
280
-
281
- console.log(`โœ… [STRAATOS DEBUG] Marker added for ${project.name} at:`, [lng, lat]);
282
- });
283
- });
284
-
285
- return () => {
286
- if (map.current) {
287
- map.current.remove();
288
- map.current = null;
289
- }
290
- };
291
- }, [projects]);
292
-
293
- return (
294
- <div className="straatos-globe-debug-container" style={{
295
- width: '100%',
296
- height: '600px',
297
- border: '2px solid #ccc',
298
- position: 'relative'
299
- }}>
300
- <div
301
- ref={mapContainer}
302
- style={{
303
- width: '100%',
304
- height: '100%',
305
- position: 'relative'
306
- }}
307
- />
308
- <div style={{
309
- position: 'absolute',
310
- top: '10px',
311
- left: '10px',
312
- background: 'rgba(255,255,255,0.9)',
313
- padding: '8px',
314
- borderRadius: '4px',
315
- fontSize: '12px',
316
- zIndex: 1000
317
- }}>
318
- <strong>Straatos Debug Map</strong><br/>
319
- Projects: {projects.length}<br/>
320
- Aggressive CSS isolation applied<br/>
321
- Check console for position verification
322
- </div>
323
- </div>
324
- );
325
- };
326
-
327
- export default SimpleGlobeStraatosDebug;
328
-
329
- // Example usage:
330
- /*
331
- import SimpleGlobeStraatosDebug from './SimpleGlobeStraatosDebug';
332
-
333
- const MyStraatosComponent = () => {
334
- const projects = [
335
- {
336
- name: "Your Project",
337
- latitude: 14.7167,
338
- longitude: -17.4677,
339
- projectDescription: "Your project description"
340
- }
341
- ];
342
-
343
- return (
344
- <div style={{ width: '100%', height: '600px' }}>
345
- <SimpleGlobeStraatosDebug projects={projects} />
346
- </div>
347
- );
348
- };
349
- */
@@ -1,150 +0,0 @@
1
- import React, { useEffect, useRef } from 'react';
2
- import mapboxgl from 'mapbox-gl';
3
- import 'mapbox-gl/dist/mapbox-gl.css';
4
-
5
- /**
6
- * SimpleGlobeTestDebug - A minimal test component to debug marker positioning issues
7
- * This component uses the most basic Mapbox setup to isolate positioning problems
8
- */
9
- const SimpleGlobeTestDebug = ({ projects = [] }) => {
10
- const mapContainer = useRef(null);
11
- const map = useRef(null);
12
-
13
- useEffect(() => {
14
- if (map.current) return;
15
-
16
- console.log('๐Ÿงช [DEBUG TEST] Creating minimal map...');
17
-
18
- // Set Mapbox access token
19
- mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
20
-
21
- // Create minimal map
22
- map.current = new mapboxgl.Map({
23
- container: mapContainer.current,
24
- style: 'mapbox://styles/mapbox/satellite-v9',
25
- center: [0, 0],
26
- zoom: 2,
27
- projection: 'globe'
28
- });
29
-
30
- // Add markers when map loads
31
- map.current.on('load', () => {
32
- console.log('๐Ÿงช [DEBUG TEST] Map loaded, adding test markers...');
33
-
34
- projects.forEach((project, index) => {
35
- console.log(`๐Ÿงช [DEBUG TEST] Processing project ${index}:`, project);
36
-
37
- // Create simple marker
38
- const el = document.createElement('div');
39
- el.style.width = '20px';
40
- el.style.height = '20px';
41
- el.style.backgroundColor = '#FF0000';
42
- el.style.borderRadius = '50%';
43
- el.style.border = '2px solid white';
44
- el.style.cursor = 'pointer';
45
- el.style.boxShadow = '0px 3px 6px rgba(0,0,0,0.3)';
46
-
47
- // Get coordinates
48
- const lng = Number(project.longitude);
49
- const lat = Number(project.latitude);
50
-
51
- console.log(`๐Ÿงช [DEBUG TEST] Coordinates for ${project.name}:`, {
52
- original: { longitude: project.longitude, latitude: project.latitude },
53
- processed: { lng, lat },
54
- valid: !isNaN(lng) && !isNaN(lat) && lng >= -180 && lng <= 180 && lat >= -90 && lat <= 90
55
- });
56
-
57
- if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
58
- console.error(`โŒ [DEBUG TEST] Invalid coordinates for ${project.name}:`, { lng, lat });
59
- return;
60
- }
61
-
62
- // Create popup
63
- const popup = new mapboxgl.Popup({ offset: 25 })
64
- .setHTML(`
65
- <div style="padding: 8px;">
66
- <h3 style="margin: 0 0 8px 0; font-size: 14px;">${project.name}</h3>
67
- <p style="margin: 0; font-size: 12px; color: #666;">
68
- Lat: ${lat.toFixed(4)}, Lng: ${lng.toFixed(4)}
69
- </p>
70
- <p style="margin: 4px 0 0 0; font-size: 12px;">
71
- ${project.projectDescription || 'No description'}
72
- </p>
73
- </div>
74
- `);
75
-
76
- // Add marker with explicit positioning
77
- const marker = new mapboxgl.Marker({
78
- element: el,
79
- anchor: 'center'
80
- })
81
- .setLngLat([lng, lat])
82
- .setPopup(popup)
83
- .addTo(map.current);
84
-
85
- // Verify position after a delay
86
- setTimeout(() => {
87
- const markerLngLat = marker.getLngLat();
88
- const positionMatch = Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001;
89
-
90
- console.log(`๐Ÿ” [DEBUG TEST] Position verification for ${project.name}:`, {
91
- expected: [lng, lat],
92
- actual: [markerLngLat.lng, markerLngLat.lat],
93
- match: positionMatch,
94
- difference: {
95
- lng: Math.abs(markerLngLat.lng - lng),
96
- lat: Math.abs(markerLngLat.lat - lat)
97
- }
98
- });
99
-
100
- if (!positionMatch) {
101
- console.error(`โŒ [DEBUG TEST] Position mismatch for ${project.name}!`);
102
- }
103
- }, 200);
104
-
105
- console.log(`โœ… [DEBUG TEST] Marker added for ${project.name} at:`, [lng, lat]);
106
- });
107
- });
108
-
109
- return () => {
110
- if (map.current) {
111
- map.current.remove();
112
- map.current = null;
113
- }
114
- };
115
- }, [projects]);
116
-
117
- return (
118
- <div style={{
119
- width: '100%',
120
- height: '600px',
121
- border: '2px solid #ccc',
122
- position: 'relative'
123
- }}>
124
- <div
125
- ref={mapContainer}
126
- style={{
127
- width: '100%',
128
- height: '100%',
129
- position: 'relative'
130
- }}
131
- />
132
- <div style={{
133
- position: 'absolute',
134
- top: '10px',
135
- left: '10px',
136
- background: 'rgba(255,255,255,0.9)',
137
- padding: '8px',
138
- borderRadius: '4px',
139
- fontSize: '12px',
140
- zIndex: 1000
141
- }}>
142
- <strong>Debug Test Map</strong><br/>
143
- Projects: {projects.length}<br/>
144
- Check console for position verification
145
- </div>
146
- </div>
147
- );
148
- };
149
-
150
- export default SimpleGlobeTestDebug;
@@ -1,183 +0,0 @@
1
- import React, { useEffect, useRef } from 'react';
2
- import mapboxgl from 'mapbox-gl';
3
- import 'mapbox-gl/dist/mapbox-gl.css';
4
-
5
- /**
6
- * SimpleGlobeTestDebug - A minimal test component to debug marker positioning issues
7
- * This component uses the most basic Mapbox setup to isolate positioning problems
8
- *
9
- * USAGE:
10
- * 1. Copy this file to your straatos project
11
- * 2. Install mapbox-gl: npm install mapbox-gl
12
- * 3. Import and use: <SimpleGlobeTestDebug projects={yourProjects} />
13
- *
14
- * @param {Array} projects - Array of project objects with location data
15
- * @param {string} projects[].name - Project name
16
- * @param {number} projects[].latitude - Latitude coordinate
17
- * @param {number} projects[].longitude - Longitude coordinate
18
- * @param {string} projects[].projectDescription - Project description (optional)
19
- */
20
- const SimpleGlobeTestDebug = ({ projects = [] }) => {
21
- const mapContainer = useRef(null);
22
- const map = useRef(null);
23
-
24
- useEffect(() => {
25
- if (map.current) return;
26
-
27
- console.log('๐Ÿงช [DEBUG TEST] Creating minimal map...');
28
-
29
- // Set Mapbox access token - REPLACE WITH YOUR TOKEN
30
- mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
31
-
32
- // Create minimal map
33
- map.current = new mapboxgl.Map({
34
- container: mapContainer.current,
35
- style: 'mapbox://styles/mapbox/satellite-v9',
36
- center: [0, 0],
37
- zoom: 2,
38
- projection: 'globe'
39
- });
40
-
41
- // Add markers when map loads
42
- map.current.on('load', () => {
43
- console.log('๐Ÿงช [DEBUG TEST] Map loaded, adding test markers...');
44
-
45
- projects.forEach((project, index) => {
46
- console.log(`๐Ÿงช [DEBUG TEST] Processing project ${index}:`, project);
47
-
48
- // Create simple marker
49
- const el = document.createElement('div');
50
- el.style.width = '20px';
51
- el.style.height = '20px';
52
- el.style.backgroundColor = '#FF0000';
53
- el.style.borderRadius = '50%';
54
- el.style.border = '2px solid white';
55
- el.style.cursor = 'pointer';
56
- el.style.boxShadow = '0px 3px 6px rgba(0,0,0,0.3)';
57
-
58
- // Get coordinates
59
- const lng = Number(project.longitude);
60
- const lat = Number(project.latitude);
61
-
62
- console.log(`๐Ÿงช [DEBUG TEST] Coordinates for ${project.name}:`, {
63
- original: { longitude: project.longitude, latitude: project.latitude },
64
- processed: { lng, lat },
65
- valid: !isNaN(lng) && !isNaN(lat) && lng >= -180 && lng <= 180 && lat >= -90 && lat <= 90
66
- });
67
-
68
- if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
69
- console.error(`โŒ [DEBUG TEST] Invalid coordinates for ${project.name}:`, { lng, lat });
70
- return;
71
- }
72
-
73
- // Create popup
74
- const popup = new mapboxgl.Popup({ offset: 25 })
75
- .setHTML(`
76
- <div style="padding: 8px;">
77
- <h3 style="margin: 0 0 8px 0; font-size: 14px;">${project.name}</h3>
78
- <p style="margin: 0; font-size: 12px; color: #666;">
79
- Lat: ${lat.toFixed(4)}, Lng: ${lng.toFixed(4)}
80
- </p>
81
- <p style="margin: 4px 0 0 0; font-size: 12px;">
82
- ${project.projectDescription || 'No description'}
83
- </p>
84
- </div>
85
- `);
86
-
87
- // Add marker with explicit positioning
88
- const marker = new mapboxgl.Marker({
89
- element: el,
90
- anchor: 'center'
91
- })
92
- .setLngLat([lng, lat])
93
- .setPopup(popup)
94
- .addTo(map.current);
95
-
96
- // Verify position after a delay
97
- setTimeout(() => {
98
- const markerLngLat = marker.getLngLat();
99
- const positionMatch = Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001;
100
-
101
- console.log(`๐Ÿ” [DEBUG TEST] Position verification for ${project.name}:`, {
102
- expected: [lng, lat],
103
- actual: [markerLngLat.lng, markerLngLat.lat],
104
- match: positionMatch,
105
- difference: {
106
- lng: Math.abs(markerLngLat.lng - lng),
107
- lat: Math.abs(markerLngLat.lat - lat)
108
- }
109
- });
110
-
111
- if (!positionMatch) {
112
- console.error(`โŒ [DEBUG TEST] Position mismatch for ${project.name}!`);
113
- }
114
- }, 200);
115
-
116
- console.log(`โœ… [DEBUG TEST] Marker added for ${project.name} at:`, [lng, lat]);
117
- });
118
- });
119
-
120
- return () => {
121
- if (map.current) {
122
- map.current.remove();
123
- map.current = null;
124
- }
125
- };
126
- }, [projects]);
127
-
128
- return (
129
- <div style={{
130
- width: '100%',
131
- height: '600px',
132
- border: '2px solid #ccc',
133
- position: 'relative'
134
- }}>
135
- <div
136
- ref={mapContainer}
137
- style={{
138
- width: '100%',
139
- height: '100%',
140
- position: 'relative'
141
- }}
142
- />
143
- <div style={{
144
- position: 'absolute',
145
- top: '10px',
146
- left: '10px',
147
- background: 'rgba(255,255,255,0.9)',
148
- padding: '8px',
149
- borderRadius: '4px',
150
- fontSize: '12px',
151
- zIndex: 1000
152
- }}>
153
- <strong>Debug Test Map</strong><br/>
154
- Projects: {projects.length}<br/>
155
- Check console for position verification
156
- </div>
157
- </div>
158
- );
159
- };
160
-
161
- export default SimpleGlobeTestDebug;
162
-
163
- // Example usage:
164
- /*
165
- import SimpleGlobeTestDebug from './SimpleGlobeTestDebug';
166
-
167
- const MyComponent = () => {
168
- const projects = [
169
- {
170
- name: "Test Project",
171
- latitude: 14.7167,
172
- longitude: -17.4677,
173
- projectDescription: "Test project in Dakar"
174
- }
175
- ];
176
-
177
- return (
178
- <div style={{ width: '100%', height: '600px' }}>
179
- <SimpleGlobeTestDebug projects={projects} />
180
- </div>
181
- );
182
- };
183
- */