blob: 9944709b0da85d9c5115887ee69b46cc0042016e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include <mbgl/style/conversion.hpp>
#include <mbgl/util/feature.hpp>
namespace mbgl {
class RenderTile;
using namespace style::conversion;
class SourceFeatureState {
public:
SourceFeatureState() = default;
~SourceFeatureState() = default;
void updateState(const optional<std::string>& sourceLayerID, const std::string& featureID, const FeatureState& newState);
void getState(FeatureState& result, const optional<std::string>& sourceLayerID, const std::string& featureID) const;
void coalesceChanges(std::vector<RenderTile>& tiles);
private:
LayerFeatureStates currentStates;
LayerFeatureStates stateChanges;
};
} // namespace mbgl
|