datastake-daf 0.6.291 → 0.6.293

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.
@@ -21023,7 +21023,7 @@ const SimpleGlobe = _ref => {
21023
21023
  // Hide Mapbox logo and attribution completely
21024
21024
  map.current.getContainer();
21025
21025
  const style = document.createElement('style');
21026
- style.textContent = "\n .mapboxgl-ctrl-logo,\n .mapboxgl-ctrl-attrib,\n .mapboxgl-ctrl-bottom-left,\n .mapboxgl-ctrl-bottom-right {\n display: none !important;\n }\n .mapboxgl-canvas-container {\n overflow: hidden !important;\n }\n .mapboxgl-canvas {\n overflow: hidden !important;\n }\n \n /* Namespace Mapbox styles to avoid Leaflet interference */\n .daf-simple-globe-container .mapboxgl-marker {\n position: absolute !important; /* let Mapbox control positioning */\n transform: translate(-50%, -50%) !important; /* keep anchor centered */\n }\n \n .daf-simple-globe-container .mapboxgl-canvas {\n position: absolute !important;\n top: 0;\n left: 0;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas-container {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas-container canvas {\n position: absolute !important;\n top: 0;\n left: 0;\n transform: none !important;\n }\n ";
21026
+ style.textContent = "\n .mapboxgl-ctrl-logo,\n .mapboxgl-ctrl-attrib,\n .mapboxgl-ctrl-bottom-left,\n .mapboxgl-ctrl-bottom-right {\n display: none !important;\n }\n .mapboxgl-canvas-container {\n overflow: hidden !important;\n }\n .mapboxgl-canvas {\n overflow: hidden !important;\n }\n \n /* Namespace Mapbox styles to avoid Leaflet interference */\n .daf-simple-globe-container .mapboxgl-marker {\n position: absolute !important; /* let Mapbox control positioning */\n transform: none !important; /* let Mapbox handle positioning for 3D globe */\n left: auto !important;\n top: auto !important;\n z-index: 1000 !important; /* ensure markers are visible */\n }\n \n .daf-simple-globe-container .mapboxgl-marker-pane {\n position: absolute !important;\n z-index: 1000 !important;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas {\n position: absolute !important;\n top: 0;\n left: 0;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas-container {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas-container canvas {\n position: absolute !important;\n top: 0;\n left: 0;\n transform: none !important;\n }\n ";
21027
21027
  document.head.appendChild(style);
21028
21028
 
21029
21029
  // Calculate bounds to fit all markers
@@ -21126,7 +21126,7 @@ const SimpleGlobe = _ref => {
21126
21126
  // Create marker with explicit positioning and anchor for 3D globe
21127
21127
  const marker = new mapboxgl.Marker({
21128
21128
  element: el,
21129
- anchor: type === "location" ? 'bottom' : 'center'
21129
+ anchor: 'center' // Use center anchor for 3D globe positioning
21130
21130
  }).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
21131
21131
 
21132
21132
  // Add click handler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.291",
3
+ "version": "0.6.293",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -128,7 +128,15 @@ const SimpleGlobe = ({
128
128
  /* Namespace Mapbox styles to avoid Leaflet interference */
129
129
  .daf-simple-globe-container .mapboxgl-marker {
130
130
  position: absolute !important; /* let Mapbox control positioning */
131
- transform: translate(-50%, -50%) !important; /* keep anchor centered */
131
+ transform: none !important; /* let Mapbox handle positioning for 3D globe */
132
+ left: auto !important;
133
+ top: auto !important;
134
+ z-index: 1000 !important; /* ensure markers are visible */
135
+ }
136
+
137
+ .daf-simple-globe-container .mapboxgl-marker-pane {
138
+ position: absolute !important;
139
+ z-index: 1000 !important;
132
140
  }
133
141
 
134
142
  .daf-simple-globe-container .mapboxgl-canvas {
@@ -274,7 +282,7 @@ const SimpleGlobe = ({
274
282
  // Create marker with explicit positioning and anchor for 3D globe
275
283
  const marker = new mapboxgl.Marker({
276
284
  element: el,
277
- anchor: type === "location" ? 'bottom' : 'center'
285
+ anchor: 'center' // Use center anchor for 3D globe positioning
278
286
  })
279
287
  .setLngLat([lng, lat])
280
288
  .setPopup(popup)