Added missing hillshade / raster-dem guards.

This commit is contained in:
orangemug
2018-02-17 07:45:24 +00:00
parent 180b17d315
commit 38e0786463
2 changed files with 3 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ function buildInspectStyle(originalMapStyle, coloredLayers, highlightedLayer) {
const sources = {}
Object.keys(originalMapStyle.sources).forEach(sourceId => {
const source = originalMapStyle.sources[sourceId]
if(source.type !== 'raster') {
if(source.type !== 'raster' && source.type !== 'raster-dem') {
sources[sourceId] = source
}
})