mapbox / mapbox-scenekit

Other
231 stars 51 forks source link

TerrainNode boundaries across 180° longitude don't wrap #60

Open jim-martin opened 5 years ago

jim-martin commented 5 years ago

Creating a terrain node with bounds crossing 180° longitude fails. For example, New Zealand can't be rendered in a single TerrainNode.

Example:TerrainNode(minLat: -44.0, maxLat: -36.0, minLon: 169.0, maxLon: -179.0).

I've added some simple checks in #59 to avoid crashes, but not a fix.