diff options
Diffstat (limited to 'include/mbgl/style/style_properties.hpp')
-rw-r--r-- | include/mbgl/style/style_properties.hpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/include/mbgl/style/style_properties.hpp b/include/mbgl/style/style_properties.hpp index aacac3387b..2216491135 100644 --- a/include/mbgl/style/style_properties.hpp +++ b/include/mbgl/style/style_properties.hpp @@ -1,14 +1,10 @@ #ifndef MBGL_STYLE_STYLE_PROPERTIES #define MBGL_STYLE_STYLE_PROPERTIES -#include <mapbox/variant.hpp> - #include <mbgl/style/types.hpp> #include <array> #include <string> -#include <type_traits> -#include <memory> #include <vector> namespace mbgl { @@ -169,22 +165,16 @@ public: float opacity = 1.0f; Color color = {{ 0, 0, 0, 1 }}; Faded<std::string> image; + + inline bool isVisible() const { + return opacity > 0; + } }; class BackgroundLayoutProperties { public: }; -typedef mapbox::util::variant< - FillPaintProperties, - LinePaintProperties, - CirclePaintProperties, - SymbolPaintProperties, - RasterPaintProperties, - BackgroundPaintProperties, - std::false_type -> StyleProperties; - } #endif |