Skip to content

(Question) Getting lat/lng within onHexPolygonClick #72

Description

@narenranjit

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')
      }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions