We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32973fc commit 17f3378Copy full SHA for 17f3378
src/plots/mapbox/layers.js
@@ -45,9 +45,15 @@ proto.update = function update(opts) {
45
};
46
47
proto.needsNewSource = function(opts) {
48
+
49
+ // for some reason changing layer to 'fill' w/o changing the source
50
+ // throws an exception in mapbox-gl 0.18
51
+ var changesToFill = (this.layerType !== 'fill' && opts.type === 'fill');
52
53
return (
54
this.sourceType !== opts.sourcetype ||
- this.source !== opts.source
55
+ this.source !== opts.source ||
56
+ changesToFill
57
);
58
59
0 commit comments