mapbox / mapbox/mapbox-maps-ios

Use DEM or Raster data for client side rendering in a CustomLayer.

Open
#1,907 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

New Feature

How can I replicate the HillshadeLayer to create my own coloured shaded layers using DEM data ?

There could be some nice effects produced by doing this, especially in conjunction with Terrain layer, but I haven't been unable to see how this is done. The closest is the CustomLayer example but can't see how this could be used with a Raster or DEM source..

Could this be a new Layer type perhaps ? DEMRasterLayer ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Apps/Examples/Examples/All Examples/CustomLayerExample.swift and compare it with the existing HillshadeLayer and Terrain layer implementations. Determine how a CustomLayer could consume Raster or DEM data and whether the desired result requires a new layer type. Done should include a documented, usable path for client-side coloured shaded rendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
computer-graphics, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.