We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d1db3f commit 82fbdcdCopy full SHA for 82fbdcd
src/plots/mapbox/layers.js
@@ -94,6 +94,14 @@ proto.updateImage = function(opts) {
94
map.getSource(this.idSource).updateImage({
95
url: opts.source, coordinates: opts.coordinates
96
});
97
+
98
+ // Since the `updateImage` control flow doesn't call updateLayer,
99
+ // We need to take care of moving the image layer to match the location
100
+ // where updateLayer would have placed it.
101
+ var _below = this.findFollowingMapboxLayerId(this.lookupBelow());
102
+ if(_below !== null) {
103
+ this.subplot.map.moveLayer(this.idLayer, _below);
104
+ }
105
};
106
107
proto.updateSource = function(opts) {
0 commit comments