diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 45846170c22..08bafcfbdc3 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -33,7 +33,7 @@ class SpriteAtlas; class Map : private util::noncopyable { public: - explicit Map(View&, FileSource&); + explicit Map(View&, FileSource&, std::string = ""); ~Map(); // Start the map render thread. It is asynchronous. diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index ea95c925c8d..7831a08b61d 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -86,7 +87,7 @@ const static bool sqliteVersionCheck = []() { using namespace mbgl; -Map::Map(View& view_, FileSource& fileSource_) +Map::Map(View& view_, FileSource& fileSource_, std::string featureJSON_) : loop(util::make_unique()), view(view_), #ifndef NDEBUG @@ -106,6 +107,15 @@ Map::Map(View& view_, FileSource& fileSource_) isClean.clear(); isRendered.clear(); isSwapped.test_and_set(); + + if (featureJSON_.length()) { + + using namespace mbgl; + using namespace util; + using namespace geojsonvt; + + GeoJSONVT vt = GeoJSONVT(featureJSON_); + } } Map::~Map() {