datastake-daf 0.6.282 β 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.
- package/dist/components/index.js +143 -128
- package/dist/style/datastake/mapbox-gl.css +330 -0
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Globe/CSSInJSGlobe.jsx +415 -0
- package/src/@daf/core/components/Dashboard/Globe/IsolatedGlobe.jsx +345 -0
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobe.jsx +14 -56
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobe.stories.js +22 -7
- package/src/index.js +1 -1
- package/src/styles/datastake/mapbox-gl.css +330 -0
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobeTestDebug.jsx +0 -150
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobeTestDebug.standalone.jsx +0 -183
package/dist/components/index.js
CHANGED
|
@@ -20959,29 +20959,15 @@ const SimpleGlobe = _ref => {
|
|
|
20959
20959
|
// Set Mapbox access token
|
|
20960
20960
|
mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
|
|
20961
20961
|
|
|
20962
|
-
// Create map with custom Straatos style
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20967
|
-
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
});
|
|
20972
|
-
console.log('πΊοΈ [SIMPLE GLOBE] Custom style loaded successfully');
|
|
20973
|
-
} catch (error) {
|
|
20974
|
-
console.warn('β οΈ [SIMPLE GLOBE] Custom style failed, using fallback:', error);
|
|
20975
|
-
// Fallback to standard style
|
|
20976
|
-
map.current = new mapboxgl.Map({
|
|
20977
|
-
container: mapContainer.current,
|
|
20978
|
-
style: 'mapbox://styles/mapbox/satellite-v9',
|
|
20979
|
-
center: [0, 0],
|
|
20980
|
-
zoom: mapConfig.maxZoom || 3,
|
|
20981
|
-
projection: 'globe',
|
|
20982
|
-
attributionControl: false
|
|
20983
|
-
});
|
|
20984
|
-
}
|
|
20962
|
+
// Create map with custom Straatos style
|
|
20963
|
+
map.current = new mapboxgl.Map({
|
|
20964
|
+
container: mapContainer.current,
|
|
20965
|
+
style: 'mapbox://styles/pietragottardo/cm9tt9zfi00d101pg1vdx26si',
|
|
20966
|
+
center: [0, 0],
|
|
20967
|
+
zoom: mapConfig.maxZoom || 3,
|
|
20968
|
+
projection: 'globe',
|
|
20969
|
+
attributionControl: false
|
|
20970
|
+
});
|
|
20985
20971
|
|
|
20986
20972
|
// Add markers when map loads
|
|
20987
20973
|
map.current.on('load', () => {
|
|
@@ -21033,12 +21019,6 @@ const SimpleGlobe = _ref => {
|
|
|
21033
21019
|
el.style.display = 'flex';
|
|
21034
21020
|
el.style.alignItems = 'center';
|
|
21035
21021
|
el.style.justifyContent = 'center';
|
|
21036
|
-
// Ensure proper positioning and prevent CSS interference
|
|
21037
|
-
el.style.position = 'relative';
|
|
21038
|
-
el.style.left = 'auto';
|
|
21039
|
-
el.style.top = 'auto';
|
|
21040
|
-
el.style.transform = 'none';
|
|
21041
|
-
el.style.zIndex = '1000';
|
|
21042
21022
|
if (type === "location") {
|
|
21043
21023
|
// Location marker - SVG map pin style
|
|
21044
21024
|
el.style.width = '28px';
|
|
@@ -21094,31 +21074,19 @@ const SimpleGlobe = _ref => {
|
|
|
21094
21074
|
closeOnClick: false
|
|
21095
21075
|
}).setHTML(popupContent);
|
|
21096
21076
|
|
|
21097
|
-
// Ensure coordinates are valid numbers
|
|
21077
|
+
// Ensure coordinates are valid numbers
|
|
21098
21078
|
const lng = Number(project.longitude);
|
|
21099
21079
|
const lat = Number(project.latitude);
|
|
21100
21080
|
console.log("\uD83D\uDCCD [SIMPLE GLOBE] Marker ".concat(index, " coordinates:"), {
|
|
21101
|
-
|
|
21102
|
-
|
|
21103
|
-
latitude: project.latitude
|
|
21104
|
-
},
|
|
21105
|
-
processed: {
|
|
21106
|
-
lng,
|
|
21107
|
-
lat
|
|
21108
|
-
},
|
|
21109
|
-
project: project.name
|
|
21081
|
+
lng,
|
|
21082
|
+
lat
|
|
21110
21083
|
});
|
|
21111
21084
|
|
|
21112
21085
|
// Validate coordinates
|
|
21113
21086
|
if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
|
|
21114
21087
|
console.error("\u274C [SIMPLE GLOBE] Invalid coordinates for project ".concat(index, ":"), {
|
|
21115
21088
|
lng,
|
|
21116
|
-
lat
|
|
21117
|
-
original: {
|
|
21118
|
-
longitude: project.longitude,
|
|
21119
|
-
latitude: project.latitude
|
|
21120
|
-
},
|
|
21121
|
-
project: project.name
|
|
21089
|
+
lat
|
|
21122
21090
|
});
|
|
21123
21091
|
return;
|
|
21124
21092
|
}
|
|
@@ -21127,28 +21095,14 @@ const SimpleGlobe = _ref => {
|
|
|
21127
21095
|
bounds.extend([lng, lat]);
|
|
21128
21096
|
hasValidCoordinates = true;
|
|
21129
21097
|
|
|
21130
|
-
//
|
|
21131
|
-
|
|
21132
|
-
element: el,
|
|
21133
|
-
anchor: 'center'
|
|
21134
|
-
}).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
|
|
21098
|
+
// Add marker to map with proper coordinate order [lng, lat]
|
|
21099
|
+
new mapboxgl.Marker(el).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
|
|
21135
21100
|
|
|
21136
21101
|
// Add click handler
|
|
21137
21102
|
el.addEventListener('click', () => {
|
|
21138
21103
|
console.log('π [SIMPLE GLOBE] Marker clicked:', project);
|
|
21139
21104
|
onProjectClick(project);
|
|
21140
21105
|
});
|
|
21141
|
-
|
|
21142
|
-
// Verify marker position after a short delay
|
|
21143
|
-
setTimeout(() => {
|
|
21144
|
-
const markerLngLat = marker.getLngLat();
|
|
21145
|
-
console.log("\uD83D\uDD0D [SIMPLE GLOBE] Marker ".concat(index, " position verification:"), {
|
|
21146
|
-
expected: [lng, lat],
|
|
21147
|
-
actual: [markerLngLat.lng, markerLngLat.lat],
|
|
21148
|
-
project: project.name,
|
|
21149
|
-
match: Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001
|
|
21150
|
-
});
|
|
21151
|
-
}, 100);
|
|
21152
21106
|
console.log("\u2705 [SIMPLE GLOBE] Marker ".concat(index, " added at:"), [lng, lat]);
|
|
21153
21107
|
});
|
|
21154
21108
|
|
|
@@ -21263,48 +21217,108 @@ const SimpleGlobe = _ref => {
|
|
|
21263
21217
|
});
|
|
21264
21218
|
};
|
|
21265
21219
|
|
|
21266
|
-
const
|
|
21220
|
+
const IsolatedGlobe = _ref => {
|
|
21267
21221
|
let {
|
|
21268
|
-
projects = []
|
|
21222
|
+
projects = [],
|
|
21223
|
+
mapConfig = {},
|
|
21224
|
+
onProjectClick = () => {},
|
|
21225
|
+
type = "default",
|
|
21226
|
+
color = "#00809E"
|
|
21269
21227
|
} = _ref;
|
|
21270
21228
|
const mapContainer = React.useRef(null);
|
|
21271
21229
|
const map = React.useRef(null);
|
|
21230
|
+
const shadowRoot = React.useRef(null);
|
|
21231
|
+
const boundsRef = React.useRef(null);
|
|
21272
21232
|
React.useEffect(() => {
|
|
21273
21233
|
if (map.current) return;
|
|
21274
|
-
console.log('
|
|
21234
|
+
console.log('πΊοΈ [ISOLATED GLOBE] Creating isolated map...');
|
|
21275
21235
|
|
|
21276
21236
|
// Set Mapbox access token
|
|
21277
21237
|
mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
|
|
21278
21238
|
|
|
21279
|
-
// Create
|
|
21239
|
+
// Create shadow DOM for complete isolation
|
|
21240
|
+
const container = mapContainer.current;
|
|
21241
|
+
shadowRoot.current = container.attachShadow({
|
|
21242
|
+
mode: 'open'
|
|
21243
|
+
});
|
|
21244
|
+
|
|
21245
|
+
// Create isolated styles
|
|
21246
|
+
const style = document.createElement('style');
|
|
21247
|
+
style.textContent = "\n :host {\n display: block;\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden;\n }\n \n .mapboxgl-map {\n font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 100%;\n -webkit-tap-highlight-color: rgb(0 0 0/0);\n }\n \n .mapboxgl-canvas {\n left: 0;\n position: absolute;\n top: 0;\n }\n \n .mapboxgl-canvas-container {\n position: relative;\n width: 100%;\n height: 100%;\n }\n \n .mapboxgl-marker {\n position: absolute;\n z-index: 1;\n }\n \n .mapboxgl-marker svg {\n display: block;\n }\n \n .mapboxgl-popup {\n position: absolute;\n text-align: center;\n margin-bottom: 20px;\n }\n \n .mapboxgl-popup-content-wrapper {\n padding: 1px;\n text-align: left;\n border-radius: 12px;\n background: white;\n color: #333;\n box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);\n }\n \n .mapboxgl-popup-content {\n margin: 13px 24px 13px 20px;\n line-height: 1.3;\n font-size: 13px;\n min-height: 1px;\n }\n \n .mapboxgl-popup-tip-container {\n width: 40px;\n height: 20px;\n position: absolute;\n left: 50%;\n margin-top: -1px;\n margin-left: -20px;\n overflow: hidden;\n pointer-events: none;\n }\n \n .mapboxgl-popup-tip {\n width: 17px;\n height: 17px;\n padding: 1px;\n margin: -10px auto 0;\n pointer-events: auto;\n transform: rotate(45deg);\n background: white;\n box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);\n }\n \n .mapboxgl-popup-close-button {\n position: absolute;\n top: 0;\n right: 0;\n border: none;\n text-align: center;\n width: 24px;\n height: 24px;\n font: 16px/24px Tahoma, Verdana, sans-serif;\n color: #757575;\n text-decoration: none;\n background: transparent;\n cursor: pointer;\n }\n \n .mapboxgl-popup-close-button:hover {\n color: #585858;\n }\n \n .mapboxgl-ctrl-attribution,\n .mapboxgl-ctrl-logo {\n display: none !important;\n }\n ";
|
|
21248
|
+
shadowRoot.current.appendChild(style);
|
|
21249
|
+
|
|
21250
|
+
// Create map container inside shadow DOM
|
|
21251
|
+
const mapDiv = document.createElement('div');
|
|
21252
|
+
mapDiv.style.width = '100%';
|
|
21253
|
+
mapDiv.style.height = '100%';
|
|
21254
|
+
shadowRoot.current.appendChild(mapDiv);
|
|
21255
|
+
|
|
21256
|
+
// Create map
|
|
21280
21257
|
map.current = new mapboxgl.Map({
|
|
21281
|
-
container:
|
|
21258
|
+
container: mapDiv,
|
|
21282
21259
|
style: 'mapbox://styles/mapbox/satellite-v9',
|
|
21283
21260
|
center: [0, 0],
|
|
21284
|
-
zoom:
|
|
21285
|
-
projection: 'globe'
|
|
21261
|
+
zoom: mapConfig.maxZoom || 3,
|
|
21262
|
+
projection: 'globe',
|
|
21263
|
+
attributionControl: false
|
|
21286
21264
|
});
|
|
21287
21265
|
|
|
21288
21266
|
// Add markers when map loads
|
|
21289
21267
|
map.current.on('load', () => {
|
|
21290
|
-
console.log('
|
|
21268
|
+
console.log('πΊοΈ [ISOLATED GLOBE] Map loaded, adding markers...');
|
|
21269
|
+
|
|
21270
|
+
// Calculate bounds to fit all markers
|
|
21271
|
+
const bounds = new mapboxgl.LngLatBounds();
|
|
21272
|
+
let hasValidCoordinates = false;
|
|
21291
21273
|
projects.forEach((project, index) => {
|
|
21292
|
-
console.log("\
|
|
21274
|
+
console.log("\uD83D\uDCCD [ISOLATED GLOBE] Adding marker ".concat(index, ":"), project);
|
|
21293
21275
|
|
|
21294
|
-
// Create
|
|
21276
|
+
// Create marker element
|
|
21295
21277
|
const el = document.createElement('div');
|
|
21296
|
-
el.style.width = '20px';
|
|
21297
|
-
el.style.height = '20px';
|
|
21298
|
-
el.style.backgroundColor = '#FF0000';
|
|
21299
|
-
el.style.borderRadius = '50%';
|
|
21300
|
-
el.style.border = '2px solid white';
|
|
21301
21278
|
el.style.cursor = 'pointer';
|
|
21302
|
-
el.style.boxShadow = '0px
|
|
21279
|
+
el.style.boxShadow = '0px 3.45px 3.45px 0px #00000029';
|
|
21280
|
+
el.style.display = 'flex';
|
|
21281
|
+
el.style.alignItems = 'center';
|
|
21282
|
+
el.style.justifyContent = 'center';
|
|
21283
|
+
el.style.position = 'relative';
|
|
21284
|
+
el.style.left = 'auto';
|
|
21285
|
+
el.style.top = 'auto';
|
|
21286
|
+
el.style.transform = 'none';
|
|
21287
|
+
el.style.zIndex = '1000';
|
|
21288
|
+
if (type === "location") {
|
|
21289
|
+
// Location marker - SVG map pin style
|
|
21290
|
+
el.style.width = '28px';
|
|
21291
|
+
el.style.height = '33px';
|
|
21292
|
+
el.innerHTML = "\n <svg\n width=\"28\"\n height=\"33\"\n viewBox=\"0 0 28 33\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.14346 4.87419C10.0688 -0.15896 18.0528 -0.162058 22.9757 4.86861C27.6563 9.65161 27.8841 17.2616 23.6622 22.3255H23.6608C23.427 22.6141 23.1808 22.894 22.9211 23.1623L14.0671 32.2101L5.44057 23.3948L5.13868 23.096C0.215857 18.0655 0.218422 9.90737 5.14346 4.87419Z\"\n fill=\"".concat(color, "\"\n stroke=\"white\"\n />\n </svg>\n ");
|
|
21293
|
+
} else {
|
|
21294
|
+
// Default circular marker style
|
|
21295
|
+
el.style.width = '30px';
|
|
21296
|
+
el.style.height = '30px';
|
|
21297
|
+
el.style.backgroundColor = color;
|
|
21298
|
+
el.style.borderRadius = '50%';
|
|
21299
|
+
el.style.border = '2px solid white';
|
|
21300
|
+
el.style.color = 'white';
|
|
21301
|
+
el.style.fontWeight = 'bold';
|
|
21302
|
+
el.style.fontSize = '14px';
|
|
21303
|
+
el.style.textAlign = 'center';
|
|
21304
|
+
el.style.lineHeight = '1';
|
|
21305
|
+
el.innerHTML = "<span style=\"display: block; line-height: 1;\">".concat(project.percentageCompletion || 0, "</span>");
|
|
21306
|
+
}
|
|
21307
|
+
|
|
21308
|
+
// Create popup content
|
|
21309
|
+
const popupContent = "\n <div style=\"padding: 12px; min-width: 200px;\">\n <h3 style=\"margin: 0 0 8px 0; font-size: 16px; color: #333;\">".concat(project.name, "</h3>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Country:</strong> ").concat(project.country || 'N/A', "\n </p>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Sector:</strong> ").concat(project.sectoralScope || 'Project', "\n </p>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Completion:</strong> ").concat(project.percentageCompletion || 0, "%\n </p>\n <p style=\"margin: 4px 0 0 0; font-size: 12px; color: #666;\">\n <strong>Coordinates:</strong> ").concat(Number(project.latitude).toFixed(4), ", ").concat(Number(project.longitude).toFixed(4), "\n </p>\n </div>\n ");
|
|
21310
|
+
|
|
21311
|
+
// Create popup
|
|
21312
|
+
const popup = new mapboxgl.Popup({
|
|
21313
|
+
offset: 25,
|
|
21314
|
+
closeButton: true,
|
|
21315
|
+
closeOnClick: false
|
|
21316
|
+
}).setHTML(popupContent);
|
|
21303
21317
|
|
|
21304
|
-
//
|
|
21318
|
+
// Ensure coordinates are valid numbers
|
|
21305
21319
|
const lng = Number(project.longitude);
|
|
21306
21320
|
const lat = Number(project.latitude);
|
|
21307
|
-
console.log("\
|
|
21321
|
+
console.log("\uD83D\uDCCD [ISOLATED GLOBE] Marker ".concat(index, " coordinates:"), {
|
|
21308
21322
|
original: {
|
|
21309
21323
|
longitude: project.longitude,
|
|
21310
21324
|
latitude: project.latitude
|
|
@@ -21313,46 +21327,69 @@ const SimpleGlobeTestDebug = _ref => {
|
|
|
21313
21327
|
lng,
|
|
21314
21328
|
lat
|
|
21315
21329
|
},
|
|
21316
|
-
|
|
21330
|
+
project: project.name
|
|
21317
21331
|
});
|
|
21332
|
+
|
|
21333
|
+
// Validate coordinates
|
|
21318
21334
|
if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
|
|
21319
|
-
console.error("\u274C [
|
|
21335
|
+
console.error("\u274C [ISOLATED GLOBE] Invalid coordinates for project ".concat(index, ":"), {
|
|
21320
21336
|
lng,
|
|
21321
|
-
lat
|
|
21337
|
+
lat,
|
|
21338
|
+
original: {
|
|
21339
|
+
longitude: project.longitude,
|
|
21340
|
+
latitude: project.latitude
|
|
21341
|
+
},
|
|
21342
|
+
project: project.name
|
|
21322
21343
|
});
|
|
21323
21344
|
return;
|
|
21324
21345
|
}
|
|
21325
21346
|
|
|
21326
|
-
//
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
}).setHTML("\n <div style=\"padding: 8px;\">\n <h3 style=\"margin: 0 0 8px 0; font-size: 14px;\">".concat(project.name, "</h3>\n <p style=\"margin: 0; font-size: 12px; color: #666;\">\n Lat: ").concat(lat.toFixed(4), ", Lng: ").concat(lng.toFixed(4), "\n </p>\n <p style=\"margin: 4px 0 0 0; font-size: 12px;\">\n ").concat(project.projectDescription || 'No description', "\n </p>\n </div>\n "));
|
|
21347
|
+
// Add coordinates to bounds
|
|
21348
|
+
bounds.extend([lng, lat]);
|
|
21349
|
+
hasValidCoordinates = true;
|
|
21330
21350
|
|
|
21331
|
-
//
|
|
21351
|
+
// Create marker with explicit positioning
|
|
21332
21352
|
const marker = new mapboxgl.Marker({
|
|
21333
21353
|
element: el,
|
|
21334
21354
|
anchor: 'center'
|
|
21335
21355
|
}).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
|
|
21336
21356
|
|
|
21337
|
-
//
|
|
21357
|
+
// Add click handler
|
|
21358
|
+
el.addEventListener('click', () => {
|
|
21359
|
+
console.log('π [ISOLATED GLOBE] Marker clicked:', project);
|
|
21360
|
+
onProjectClick(project);
|
|
21361
|
+
});
|
|
21362
|
+
|
|
21363
|
+
// Verify marker position after a short delay
|
|
21338
21364
|
setTimeout(() => {
|
|
21339
21365
|
const markerLngLat = marker.getLngLat();
|
|
21340
|
-
|
|
21341
|
-
console.log("\uD83D\uDD0D [DEBUG TEST] Position verification for ".concat(project.name, ":"), {
|
|
21366
|
+
console.log("\uD83D\uDD0D [ISOLATED GLOBE] Marker ".concat(index, " position verification:"), {
|
|
21342
21367
|
expected: [lng, lat],
|
|
21343
21368
|
actual: [markerLngLat.lng, markerLngLat.lat],
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
lng: Math.abs(markerLngLat.lng - lng),
|
|
21347
|
-
lat: Math.abs(markerLngLat.lat - lat)
|
|
21348
|
-
}
|
|
21369
|
+
project: project.name,
|
|
21370
|
+
match: Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001
|
|
21349
21371
|
});
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
}
|
|
21353
|
-
}, 200);
|
|
21354
|
-
console.log("\u2705 [DEBUG TEST] Marker added for ".concat(project.name, " at:"), [lng, lat]);
|
|
21372
|
+
}, 100);
|
|
21373
|
+
console.log("\u2705 [ISOLATED GLOBE] Marker ".concat(index, " added at:"), [lng, lat]);
|
|
21355
21374
|
});
|
|
21375
|
+
|
|
21376
|
+
// Fit map to show all markers if we have valid coordinates
|
|
21377
|
+
if (hasValidCoordinates && !bounds.isEmpty()) {
|
|
21378
|
+
console.log('πΊοΈ [ISOLATED GLOBE] Fitting map to bounds:', bounds);
|
|
21379
|
+
map.current.fitBounds(bounds, {
|
|
21380
|
+
padding: {
|
|
21381
|
+
top: 20,
|
|
21382
|
+
bottom: 20,
|
|
21383
|
+
left: 20,
|
|
21384
|
+
right: 20
|
|
21385
|
+
},
|
|
21386
|
+
maxZoom: 6,
|
|
21387
|
+
duration: 1000
|
|
21388
|
+
});
|
|
21389
|
+
boundsRef.current = bounds;
|
|
21390
|
+
} else {
|
|
21391
|
+
boundsRef.current = null;
|
|
21392
|
+
}
|
|
21356
21393
|
});
|
|
21357
21394
|
return () => {
|
|
21358
21395
|
if (map.current) {
|
|
@@ -21360,36 +21397,14 @@ const SimpleGlobeTestDebug = _ref => {
|
|
|
21360
21397
|
map.current = null;
|
|
21361
21398
|
}
|
|
21362
21399
|
};
|
|
21363
|
-
}, [projects]);
|
|
21364
|
-
return /*#__PURE__*/jsxRuntime.
|
|
21400
|
+
}, [projects, onProjectClick, mapConfig]);
|
|
21401
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
21402
|
+
ref: mapContainer,
|
|
21365
21403
|
style: {
|
|
21366
21404
|
width: '100%',
|
|
21367
|
-
height: '
|
|
21368
|
-
border: '2px solid #ccc',
|
|
21405
|
+
height: '100%',
|
|
21369
21406
|
position: 'relative'
|
|
21370
|
-
}
|
|
21371
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
21372
|
-
ref: mapContainer,
|
|
21373
|
-
style: {
|
|
21374
|
-
width: '100%',
|
|
21375
|
-
height: '100%',
|
|
21376
|
-
position: 'relative'
|
|
21377
|
-
}
|
|
21378
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
21379
|
-
style: {
|
|
21380
|
-
position: 'absolute',
|
|
21381
|
-
top: '10px',
|
|
21382
|
-
left: '10px',
|
|
21383
|
-
background: 'rgba(255,255,255,0.9)',
|
|
21384
|
-
padding: '8px',
|
|
21385
|
-
borderRadius: '4px',
|
|
21386
|
-
fontSize: '12px',
|
|
21387
|
-
zIndex: 1000
|
|
21388
|
-
},
|
|
21389
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
21390
|
-
children: "Debug Test Map"
|
|
21391
|
-
}), /*#__PURE__*/jsxRuntime.jsx("br", {}), "Projects: ", projects.length, /*#__PURE__*/jsxRuntime.jsx("br", {}), "Check console for position verification"]
|
|
21392
|
-
})]
|
|
21407
|
+
}
|
|
21393
21408
|
});
|
|
21394
21409
|
};
|
|
21395
21410
|
|
|
@@ -62173,6 +62188,7 @@ exports.InformationChannelsDataPoint = DataPoint;
|
|
|
62173
62188
|
exports.InformationChannelsSubject = Subject;
|
|
62174
62189
|
exports.InformationChannelsView = InformationChannel;
|
|
62175
62190
|
exports.InformationUnavailable = InformationUnavailable;
|
|
62191
|
+
exports.IsolatedGlobe = IsolatedGlobe;
|
|
62176
62192
|
exports.KeyIndicators = KeyIndicatorsWidget$1;
|
|
62177
62193
|
exports.KeyIndicatorsDetails = KeyIndicatorsDetails;
|
|
62178
62194
|
exports.LineChart = LineChart;
|
|
@@ -62216,7 +62232,6 @@ exports.SettingsPopover = SettingsPopover;
|
|
|
62216
62232
|
exports.Sidenav = Sidenav;
|
|
62217
62233
|
exports.SidenavMenu = SidenavMenu;
|
|
62218
62234
|
exports.SimpleGlobe = SimpleGlobe;
|
|
62219
|
-
exports.SimpleGlobeTestDebug = SimpleGlobeTestDebug;
|
|
62220
62235
|
exports.StackChart = StackChart;
|
|
62221
62236
|
exports.StakeholderMappings = index$1;
|
|
62222
62237
|
exports.Steps = DAFSteps;
|