#pragma once #include #include #include #include namespace mbgl { class SpriteAtlasElement; class SymbolFeature; class PositionedIcon { public: PositionedIcon() = default; PositionedIcon(const SpriteAtlasElement& image_, float top_, float bottom_, float left_, float right_, float angle_) : image(image_), top(top_), bottom(bottom_), left(left_), right(right_), angle(angle_) {} optional image; float top = 0; float bottom = 0; float left = 0; float right = 0; float angle = 0; explicit operator bool() const { return image && (*image).pos.hasArea(); } }; PositionedIcon shapeIcon(const SpriteAtlasElement&, const SymbolFeature&); } // namespace mbgl