Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
simple GeoJSONVT use test triggering link error
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Dec 24, 2014
1 parent 07eda4b commit 8e8dd9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mbgl/map/map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 11 additions & 1 deletion src/mbgl/map/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <mbgl/storage/file_source.hpp>
#include <mbgl/platform/log.hpp>
#include <mbgl/util/string.hpp>
#include <mbgl/util/geojsonvt.hpp>

#include <algorithm>
#include <iostream>
Expand Down Expand Up @@ -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<uv::loop>()),
view(view_),
#ifndef NDEBUG
Expand All @@ -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() {
Expand Down

0 comments on commit 8e8dd9b

Please sign in to comment.