diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-03-26 15:54:19 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-04-02 11:50:52 +0300 |
commit | c3b68fe91b648f26f10cb8e03f6a8e65681fd023 (patch) | |
tree | cf44c4ebaa0ddd11a6d7b5ef36e9eadde74a5662 /include/mbgl | |
parent | 3412331e4a3ae340e65ee7f9c3548b3127c23d2a (diff) | |
download | qtlocation-mapboxgl-c3b68fe91b648f26f10cb8e03f6a8e65681fd023.tar.gz |
[core] PlacedSymbolData includes viewport padding
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/renderer/renderer.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mbgl/renderer/renderer.hpp b/include/mbgl/renderer/renderer.hpp index c7514054e4..60f1f6ed8b 100644 --- a/include/mbgl/renderer/renderer.hpp +++ b/include/mbgl/renderer/renderer.hpp @@ -34,6 +34,8 @@ struct PlacedSymbolData { bool iconPlaced; // Symbol text or icon collision box intersects tile borders bool intersectsTileBorder; + // Viewport padding ({viewportPadding, viewportPadding} is a coordinate of the tile's top-left corner) + float viewportPadding; }; class Renderer { @@ -66,7 +68,9 @@ public: void setFeatureState(const std::string& sourceID, const optional<std::string>& sourceLayerID, const std::string& featureID, const FeatureState& state); - void getFeatureState(FeatureState& state, const std::string& sourceID, const optional<std::string>& sourceLayerID, + void getFeatureState(FeatureState& state, + const std::string& sourceID, + const optional<std::string>& sourceLayerID, const std::string& featureID) const; void removeFeatureState(const std::string& sourceID, |