@hh-hang/maplibre-gl-custom-terrain-drape
v6.2.0-terrain-drape.1
Published
Unofficial fork based on MapLibre GL JS 6.2.0 with custom terrain draping; not affiliated with or endorsed by MapLibre
Readme
Terrain Drape GL
[!IMPORTANT] This is an unofficial modified fork based on MapLibre GL JS 6.2.0. It is not affiliated with or endorsed by the MapLibre project or its contributors. MapLibre GL JS and MapLibre are names of their respective owners.
Terrain Drape GL preserves the MapLibre GL JS application API and adds terrain render-to-texture draping support for custom style layers.
Fork changes
- Custom layers can opt into terrain draping with
terrainDrapeandrenderToTile. - Custom terrain textures are cached and invalidated through
terrainDrapeRevision. - Terrain rendering is selected by the renderer, so applications do not need to branch on terrain state.
- Custom terrain rendering is integrated into the existing terrain RTT layer stack.
Installation
Install this fork under the maplibre-gl alias to keep existing application imports unchanged:
npm install maplibre-gl@npm:@hh-hang/[email protected]Then use the same imports as MapLibre GL JS:
import maplibregl from 'maplibre-gl';
import 'maplibre-gl/dist/maplibre-gl.css';Upstream project
This fork is derived from MapLibre GL JS. Refer to the upstream project for its general API documentation, examples, architecture, contribution history, and community information:
Issues specific to this fork should be reported in the fork repository.
License and attribution
This distribution retains the original copyright notices and is distributed under the BSD-3-Clause license.
The software includes work from MapLibre contributors, Mapbox GL JS 1.13 and earlier, and other authors identified in LICENSE.txt. The MapLibre and contributor names are used only to identify the origin of the software and do not imply endorsement of this fork.
