mapbox / mapbox/mapbox-scenekit

TerrainNode boundaries across 180° longitude don't wrap

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Swift
Stars
232
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start at the TerrainNode entry point and reproduce the example bounds spanning 180° longitude: minLon 169.0 and maxLon -179.0. Verify that the node can be created without crashing and renders the full region, including New Zealand, as the completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.