diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2019-08-21 13:55:38 +0300 |
---|---|---|
committer | Juha Alanen <19551460+jmalanen@users.noreply.github.com> | 2019-09-18 14:29:15 +0300 |
commit | 693a10422058f6f08f80c4eda2c21c2ba9cf6ebb (patch) | |
tree | ace2d6b7332635b41e246b2a75c072ca5efbcc72 /platform/node/test/suite_implementation.js | |
parent | a186e6a27d79ca3ed1eb6fadce656df5e0e2b89f (diff) | |
download | qtlocation-mapboxgl-693a10422058f6f08f80c4eda2c21c2ba9cf6ebb.tar.gz |
[node] enable feature state tests
Diffstat (limited to 'platform/node/test/suite_implementation.js')
-rw-r--r-- | platform/node/test/suite_implementation.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js index f868af8ece..386bd41092 100644 --- a/platform/node/test/suite_implementation.js +++ b/platform/node/test/suite_implementation.js @@ -122,6 +122,12 @@ export default function (style, options, callback) { map.load(operation[1]); applyOperations(operations.slice(1), callback); + } else if (operation[0] ==='setFeatureState' || operation[0] ==='getFeatureState' || operation[0] ==='removeFeatureState') { + map.render(options, function () { + map[operation[0]].apply(map, operation.slice(1)); + applyOperations(operations.slice(1), callback); + }); + } else { // Ensure that the next `map.render(options)` does not overwrite this change. if (operation[0] === 'setCenter') { |