add methods getTiles and setTiles to mimick maplibre-gl-js interface (#149)

This commit is contained in:
Nathan Gass
2024-01-05 17:29:26 +01:00
committed by GitHub
parent 210eb45b44
commit fe728ebdd8
3 changed files with 71 additions and 0 deletions

View File

@@ -26,6 +26,14 @@ public:
void loadDescription(FileSource&) final;
/// @brief Gets the tile urls for this vector source.
/// @return List of tile urls.
const std::vector<std::string> getTiles() const;
/// @brief Sets the tile urls for this vector source.
/// @param tiles List of tile urls.
void setTiles(const std::vector<std::string>& tiles);
bool supportsLayerType(const mbgl::style::LayerTypeInfo*) const override;
mapbox::base::WeakPtr<Source> makeWeakPtr() override { return weakFactory.makeWeakPtr(); }