[tests] Enable set-style-* integration tests

This commit is contained in:
John Firebaugh
2017-06-14 12:46:24 -07:00
parent fe024bbdf6
commit cdc5f8ff14
2 changed files with 6 additions and 1 deletions

View File

@@ -80,6 +80,11 @@ module.exports = function (style, options, callback) {
});
applyOperations(operations.slice(1), callback);
} else if (operation[0] === 'setStyle') {
map.load(operation[1]);
applyOperations(operations.slice(1), callback);
} else {
// Ensure that the next `map.render(options)` does not overwrite this change.
if (operation[0] === 'setCenter') {