Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.46 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.46 KB

harpbox

Demo

harpbox.surge.sh

Description

A harp.gl map implementing terrain by using the Mapbox RGB terrain provider.

image

⚠️ The code is basic and does not support the sphere projection.

⚠️ This terrain is only a mesh underlayed in render order below the vector data. The vector data is not elevated and does not know at all about the elevation.

Elevation of vector data should be implemented in the current OmvDataSource of harp.gl instead (see that project). This is more of a demo mixing the harp suite with Mapbox RGB tiles for the moment.

Installation

git clone [email protected]:Astrak/harpbox.git
cd harpbox
yarn
yarn start

Known issues

From this repo:

  • Elevating vertices on a plane results in an overall diagonal pattern following the triangles orientation of the mesh.
  • The terrain meshes' boundaries don't fit with their neighbours.

Compliance problems with harp.gl:

  • The elevation cannot be transfered to the vector data decoded in Omv. The code in this repo should be plugged into the harp's OmvDataSource so that the height data is sampled for each vector feature, either by the team (possibly ongoing with internal non-Mapbox and non-RGB terrain) or in a forked OmvDataSource.
  • The near culling plane of the camera culls the mountains at higher zoom levels.