mapbox / mapbox-scenekit

Other
231 stars 51 forks source link

TerrainNode refactor #59

Closed jim-martin closed 6 years ago

jim-martin commented 6 years ago

Cleans up some internals of TerrainNode without effecting any public APIs.

  1. Update some variable names and code styling to improve readability.
  2. Factor out math related to zoom level calculations.
  3. Eliminate some code duplication between ImageAPI and TerrainNode.
  4. Store some common parameters in a 'constants' struct.
  5. Address #12.
  6. Load style and terrain texture in parallel.