Hillshading contained in mapbox style.json not rendered
See original GitHub issueHello,
In the style.json we are using, we have set multiple data sources, vector, raster, and raster-dem for elevation (hillshading and potentially have also hypsometric tints)
"sources": {
"contours": {
"type": "vector",
"url": "https://xxxxxx.com/europe-contours-copernicus.json"
},
"natural-earth-2": {
"type": "raster",
"maxzoom": 6,
"tiles": [
"https://xxxxx.com/naturalearth2/{z}/{x}/{y}.png"
]
},
"openmaptiles": {
"type": "vector",
"url": "https://xxxxx.com/data/planet.json"
},
"world-rgb-png": {
"type": "raster-dem",
"minzoom": 5,
"maxzoom": 11,
"encoding": "terrarium",
"tiles": ["https://xxxxxxx.com/world/{z}/{x}/{y}.png"]
},
"relief-france-hd": {
"type": "raster-dem",
"tiles": [
"https://xxxxxx.com /terrain/{z}/{x}/{y}.png"
],
"minzoom": 6,
"maxzoom": 15
}
},
The layer for hillshading is placed AFTER landuse and landcover layers in the style file :
{
"id": "Hillshading-france",
"type": "hillshade",
"source": "relief-france-hd",
"minzoom": 7,
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {
"hillshade-accent-color": "rgba(110, 58, 31, 1)",
"hillshade-exaggeration": 0.5,
"hillshade-shadow-color": "#665942",
"hillshade-illumination-direction": 315
}
},
It is actually not rendered and we cannot find a proper way to retrofit its usage since it should be displayed within the layer order set in the style.json file.
For the other source layers we have the same problem (natural earth, contours) but the workaround solution is -almost- acceptable.
We have also not been able to find a way to reproduce the nice “accent-color” property in openlayers.
Any chance someone could implement this ?
View with Openlayer using the workarounds :
View with maplibre directly interpreting the style.json (we are using more detialed source for relief here) :
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hoping is good, contributing is better - if not by writing code, then via https://github.com/sponsors/ahocevar.
Thanks but unfortunatelly I’m not a dev, I can understand a bit of code but that’s it…