15 class RendererObserver;
16 class RenderedQueryOptions;
17 class SourceQueryOptions;
18 class UpdateParameters;
21 class RendererBackend;
52 void render(
const std::shared_ptr<UpdateParameters>&);
68 const std::optional<std::map<std::string, Value>>& args = std::nullopt)
const;
75 const std::optional<std::string>& sourceLayerID,
79 const std::optional<std::string>& sourceLayerID,
80 const std::optional<std::string>& featureID,
81 const std::optional<std::string>& stateKey);
110 std::unique_ptr<Impl> impl;
void removeFeatureState(const std::string &sourceID, const std::optional< std::string > &sourceLayerID, const std::optional< std::string > &featureID, const std::optional< std::string > &stateKey)
AnnotationIDs queryShapeAnnotations(const ScreenBox &box) const
std::vector< Feature > querySourceFeatures(const std::string &sourceID, const SourceQueryOptions &options={}) const
std::vector< Feature > queryRenderedFeatures(const ScreenLineString &, const RenderedQueryOptions &options={}) const
Feature queries.
void render(const std::shared_ptr< UpdateParameters > &)
void getFeatureState(FeatureState &state, const std::string &sourceID, const std::optional< std::string > &sourceLayerID, const std::string &featureID) const
void setObserver(RendererObserver *)
void setFeatureState(const std::string &sourceID, const std::optional< std::string > &sourceLayerID, const std::string &featureID, const FeatureState &state)
void collectPlacedSymbolData(bool enable)
In Tile map mode, enables or disables collecting of the placed symbols data, which can be obtained wi...
Renderer(gfx::RendererBackend &, float pixelRatio_, const std::optional< std::string > &localFontFamily=std::nullopt)
FeatureExtensionValue queryFeatureExtensions(const std::string &sourceID, const Feature &feature, const std::string &extension, const std::string &extensionField, const std::optional< std::map< std::string, Value >> &args=std::nullopt) const
Feature extension query.
std::vector< Feature > queryRenderedFeatures(const ScreenCoordinate &point, const RenderedQueryOptions &options={}) const
std::vector< Feature > queryRenderedFeatures(const ScreenBox &box, const RenderedQueryOptions &options={}) const
AnnotationIDs getAnnotationIDs(const std::vector< Feature > &) const
AnnotationIDs queryPointAnnotations(const ScreenBox &box) const
const std::vector< PlacedSymbolData > & getPlacedSymbolsData() const
If collecting of the placed symbols data is enabled, returns the reference to the PlacedSymbolData ve...
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
mapbox::geometry::box< double > ScreenBox
mapbox::geometry::point< double > ScreenCoordinate
std::vector< AnnotationID > AnnotationIDs
mapbox::util::variant< Value, FeatureCollection > FeatureExtensionValue
mapbox::geometry::line_string< double > ScreenLineString
mapbox::base::ValueObject FeatureState
std::optional< mapbox::geometry::box< float > > textCollisionBox
If symbol contains text, text collision box in viewport coordinates.
bool textPlaced
Symbol text was placed.
float viewportPadding
Viewport padding ({viewportPadding, viewportPadding} is a coordinate of the tile's top-left corner)
bool iconPlaced
Symbol icon was placed.
std::string layer
Layer id (leader of the symbol layout group)
bool intersectsTileBorder
Symbol text or icon collision box intersects tile borders.
std::u16string key
Contents of the label.
std::optional< mapbox::geometry::box< float > > iconCollisionBox
If symbol contains icon, icon collision box in viewport coordinates.