Show elevation in MapLibre with AI
Choose a relief treatment that suits the reader. Compare hillshade, colour bands, contours and 3D terrain on a map with a working elevation source.
Show elevation in MapLibre with AI by deciding what someone should see at a glance. A walking map might need the spacing between contours to communicate a climb. An overview of a valley may read better with modest shading that leaves towns and paths legible.
The maplibre-terrain-rendering guide starts where the elevation tiles already work. It helps the agent choose a visual treatment, soften harsh hillshade and consider the camera when the landscape is rendered in three dimensions. Keeping a familiar patch of ground for comparison makes those choices easier to judge.
What it does
- Use a colour scale to distinguish elevations
- Adjust hillshade while keeping labels readable
- Draw contour lines from working elevation data
- Compare a flat treatment with a tilted 3D view
- Check the rendering cost of a more detailed scene
Install and use
- Use a compatible agent with a MapLibre GL JS project and an elevation source you may use. Runtime contours require a suitable contour tool. Give the agent the current style and a representative area.
- Ask, “Show this valley with gentle shading and with contours. Keep the station names legible and use the same view for both versions.”
- Inspect each result at the zoom level a visitor will use. Test movement on a typical device if you keep the 3D treatment.
FAQ
Source
Made by MapLibre contributors. Original skill: maplibre-terrain-rendering, published on GitHub under the MIT licence.
View on GitHub