mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

GeoToWorldPosition returning NaN for posY for lat 90.246... #1881

Open liquidbuddha opened 2 years ago

liquidbuddha commented 2 years ago

Hello, back again. :)

Note: If this is a bug or support ticket, please provide the following information:

I'm drawing a box with a center point in the US and box bounds of 3000m radius to show the limits of a lat/lon search of aircraft positions. When I hit 3k miles, this NaN error pops and break my box drawing. Seems fine under 3k. Curious why I'm getting a not-a-number when its trying to calculate a lat of 90.246... ? What can I do to trap for this or otherwise limit the query so I can always get a real number?

Screen Shot 2022-09-20 at 8 59 58 AM

maki0315 commented 2 years ago

纬度最多是90

liquidbuddha commented 2 years ago

thank you. I'll trap for that. Cheers.

brnkhy commented 2 years ago

@liquidbuddha latitude range is in between -90 and 90 so any value above 90 shouldn't happen at all. So it looks like there's something wrong with input here.