Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blending Layers (MapLibre Android) #2963

Open
EllisGlaeser opened this issue Oct 24, 2024 · 1 comment
Open

Blending Layers (MapLibre Android) #2963

EllisGlaeser opened this issue Oct 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@EllisGlaeser
Copy link

I haven't been able to figure out a way to blend layers together (e.g. a Hillshade layer on top of a map). Currently, the Raster-Dem hillshade I am using tints the whole map slightly grey. (Compare the two attached images)

This is my configuration for the hillshade layer:

override fun layerJSON(): JSONObject {
        val result = JSONObject()
        val layout = JSONObject()

        result.put("id", name)
        result.put("type", "hillshade")
        result.put("source", name)

        layout.put("hillshade-shadow-color", "#000000")
        layout.put("hillshade-exaggeration", 0.35)

        result.put("layout", layout)

        return result
    }

I would also like to be able to blend map layers together.

Is there a way to do this that I'm missing? There may be a setting I'm missing on the Raster-Dem layer.
share_2478189748591814314
share_4963160108235109904

@louwers
Copy link
Collaborator

louwers commented Nov 1, 2024

Not possible at the moment as far as I am aware. MapLibre GL JS issue: maplibre/maplibre-gl-js#48

@louwers louwers added the enhancement New feature or request label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants