diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 0a94fc7ed..4fb5bf90b 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -27,6 +27,7 @@ class StyleLayer; class StyleLayerGroup; class StyleSource; class Texturepool; +class FileSource; class View; class Map : private util::noncopyable { @@ -64,7 +65,7 @@ public: void toggleClass(const std::string &name); const std::vector &getAppliedClasses() const; void setDefaultTransitionDuration(uint64_t duration_milliseconds = 0); - void setStyleJSON(std::string newStyleJSON); + void setStyleJSON(std::string newStyleJSON, const std::string &base = ""); std::string getStyleJSON() const; void setAccessToken(std::string access_token); std::string getAccessToken() const; @@ -111,6 +112,7 @@ public: public: inline const TransformState &getState() const { return state; } + inline std::shared_ptr getFileSource() const { return fileSource; } inline std::shared_ptr