[tests] Test updating icon and pattern images
This commit is contained in:
Submodule mapbox-gl-js updated: 943dc3917b...0ee15860e3
@@ -70,7 +70,7 @@ module.exports = function (style, options, callback) {
|
||||
applyOperations(operations.slice(1), callback);
|
||||
});
|
||||
|
||||
} else if (operation[0] === 'addImage') {
|
||||
} else if (operation[0] === 'addImage' || operation[0] === 'updateImage') {
|
||||
var img = PNG.sync.read(fs.readFileSync(path.join(__dirname, '../../../mapbox-gl-js/test/integration', operation[2])));
|
||||
|
||||
map.addImage(operation[1], img.data, {
|
||||
|
||||
@@ -207,7 +207,10 @@ void RenderStyle::update(const UpdateParameters& parameters) {
|
||||
needsRendering = true;
|
||||
}
|
||||
|
||||
if (hasLayoutDifference(layerDiff, layer->id) || !imageDiff.changed.empty()) {
|
||||
if (hasLayoutDifference(layerDiff, layer->id) ||
|
||||
!imageDiff.added.empty() ||
|
||||
!imageDiff.removed.empty() ||
|
||||
!imageDiff.changed.empty()) {
|
||||
needsRelayout = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user