Skip to content

Commit

Permalink
Merge pull request #800 from openlayers/fix-raster-metadata
Browse files Browse the repository at this point in the history
Fix 'mapbox-layers' metadata for raster layers
  • Loading branch information
ahocevar committed Feb 17, 2023
2 parents 3ffe7ef + c9cad15 commit f375e78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ function processStyle(glStyle, mapOrGroup, styleUrl, options) {
} else if (glSource.type == 'vector') {
layer = setupVectorLayer(glSource, styleUrl, options);
} else if (glSource.type == 'raster') {
layerIds = [];
layer = setupRasterLayer(glSource, styleUrl, options);
layer.setVisible(
glLayer.layout ? glLayer.layout.visibility !== 'none' : true
Expand All @@ -898,6 +899,7 @@ function processStyle(glStyle, mapOrGroup, styleUrl, options) {
glSource.type == 'raster-dem' &&
glLayer.type == 'hillshade'
) {
layerIds = [];
const hillshadeLayer = setupHillshadeLayer(
glSource,
styleUrl,
Expand Down

0 comments on commit f375e78

Please sign in to comment.