Skip to content

Commit bd5fe28

Browse files
authored
Merge pull request #1057 from orangemug/fix/dont-throw-on-unsupported-layer-types
Don't throw on unsupported `heatmap` layer type instead show helpful debug info
2 parents 4d4aeaa + 5d94007 commit bd5fe28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/apply.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,9 @@ function processStyle(glStyle, mapOrGroup, styleUrl, options) {
10271027
const type = glLayer.type;
10281028
if (type == 'heatmap') {
10291029
//FIXME Unsupported layer type
1030-
throw new Error(`${type} layers are not supported`);
1030+
// eslint-disable-next-line no-console
1031+
console.debug(`layers[${i}].type "${type}" not supported`);
1032+
continue;
10311033
} else {
10321034
id = glLayer.source || getSourceIdByRef(glLayers, glLayer.ref);
10331035
// this technique assumes gl layers will be in a particular order

0 commit comments

Comments
 (0)