The onGlobeClick callback receives a point argument from which I can get a lat/long. However, if I also have a hexPolygon layer the onHexPolygonClick only gives me polygon co-ordinates; is there a way to convert this to a lat/long also?
Alternatively, if I could "pass through" clicks from the hexPolygon layer and have the globe click handler detect it, that should also work, but the following seems to not be doing that either.
pointerEventsFilter={(obj, data: any) => {
return !(data?.geometry?.type === 'Polygon')
}}
The
onGlobeClickcallback receives a point argument from which I can get a lat/long. However, if I also have a hexPolygon layer theonHexPolygonClickonly gives me polygon co-ordinates; is there a way to convert this to a lat/long also?Alternatively, if I could "pass through" clicks from the hexPolygon layer and have the globe click handler detect it, that should also work, but the following seems to not be doing that either.