the arcs are only rendered on the globe when i edit the my-flights.json and save for the…
Jump to turn (11)
- 1the arcs are only rendered on the globe when i edit the my-flights.json and save
- 2show me how to fully implement no. 4
- 3since the globe is on my index.jsx which is my home page, when i navigate to a d
- 4how do i incorporate: Globe.rotateX(-Math.PI (1 / 50)); Globe.rotateY(-Math.PI (
- 5how do i set the background color of the globe to be fully transparent: react-gl
- 6explain the following globe parameter: bumpImageUrl([url]) Getter/setter for the
- 7how do i set globematerial for the globe to const globeMaterial = Globe.globeMat
- 8Unhandled Runtime Error TypeError: globeEl.current.globeMaterial is not a functi
- 9Unhandled Runtime Error TypeError: globeEl.current.globeMaterial is not a functi
- 101 of 2 unhandled errors Unhandled Runtime Error TypeError: globeEl.current.getGl
- 11how to fix: Unhandled Runtime Error TypeError: Cannot read properties of undefin
- User
the arcs are only rendered on the globe when i edit the my-flights.json and save for the fast refresh to kick in and show the arcs. I am using npm run dev. How do i fix this issue: import React from 'react'; import Globe from 'react-globe.gl'; import countries from './files/globe-data-min.json'; import travelHistory from './files/my-flights.json'; import airportHistory from './files/my-airports.json';
const GlobeComponent = () => { return ( <Globe hexPolygonsData = { countries.features } hexPolygonResolution = { 3} hexPolygonMargin = { 0.7} showAtmosphere = { true} atmosphereColor ="#ffffff" atmosphereAltitude = { 0.1} hexPolygonColor = {(e) => { return ["KEN", "CHN", "FRA", "ZAF", "JPN", "USA", "AUS", "CAN"].includes(e.properties.ISO_A3) ? "rgba(255, 255, 255, 1)" : "rgba(255, 255, 255, 0.5)"; }} arcsData = { travelHistory.flights } arcColor = {(e) => { return e.status ? "#9cff00" : "#ff2e97"; }} arcAltitude = {(e) => { return e.arcAlt; }} arcStroke = {(e) => { return e.status ? 0.5 : 0.3; }} arcDashLength = { 0.9} arcDashGap = { 4} arcDashAnimateTime = { 1000} arcsTransitionDuration = { 1000} arcDashInitialGap = {(e) => e.order * 1} labelsData = { airportHistory.airports } labelColor = {() => "#ffffff"} labelDotOrientation = {(e) => { return e.text === "NGA" ? "top" : "right"; }} labelDotRadius = { 0.35} labelSize = {(e) => e.size} labelText = {"city" } labelResolution = { 6} labelAltitude = { 0.01} pointsData = { airportHistory.airports } pointColor = {() => "#ffffff"} pointsMerge = { true} pointAltitude = { 0.07} pointRadius = { 0.10} /> ); };