Hello,
I'm getting a map point in a SceneView using this function:
const mapPoint = view.toMap(screenPoint)
I'd like to know when this point becomes hidden by the globe when rotating. I've attached a gif to show what's happening currently
Solved! Go to Solution.
This is interesting, can you share a bit more about your use case?
I haven't tried, but I would assume that for a given myPoint on the map, once view.toScreen() and a subsequent view.toMap() do not return the same point, it's behind the globe. Can you give it a try?
This is interesting, can you share a bit more about your use case?
I haven't tried, but I would assume that for a given myPoint on the map, once view.toScreen() and a subsequent view.toMap() do not return the same point, it's behind the globe. Can you give it a try?
This worked! Thanks! I will add, that the points are never exactly equal so I just made it so that if their coordinates differ by more than 5 degrees then it doesn't display it.
As for use case, I'm trying to render some html at a location that follows the map at a given coordinate. Is there an easier way to do this?