We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb854fe commit 752c419Copy full SHA for 752c419
src/plots/mapbox/layers.js
@@ -48,16 +48,13 @@ proto.update = function update(opts) {
48
proto.needsNewSource = function(opts) {
49
50
// for some reason changing layer to 'fill' or 'symbol'
51
- // w/o changing the source throws an exception in mapbox-gl 0.18
52
-
53
- var changesToFill = (this.layerType !== 'fill' && opts.type === 'fill'),
54
- changesToSymbol = (this.layerType !== 'symbol' && opts.type === 'symbol');
+ // w/o changing the source throws an exception in mapbox-gl 0.18 ;
+ // stay safe and make new source on type changes
55
56
return (
57
this.sourceType !== opts.sourcetype ||
58
this.source !== opts.source ||
59
- changesToFill ||
60
- changesToSymbol
+ this.layerType !== opts.type
61
);
62
};
63
0 commit comments