summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/geojson_source_impl.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-23 12:00:25 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-24 09:39:51 -0700
commit021d4199cb9ee754e9f0f5bc42f7f75285afd405 (patch)
tree9396f291348c0ab5f3a75e1a217a78fc4dbff4b2 /src/mbgl/style/sources/geojson_source_impl.hpp
parent16c435b1517b15a5ea8654987979ef58800b838b (diff)
downloadqtlocation-mapboxgl-021d4199cb9ee754e9f0f5bc42f7f75285afd405.tar.gz
[core, node] Implement bindings for addSource
Diffstat (limited to 'src/mbgl/style/sources/geojson_source_impl.hpp')
-rw-r--r--src/mbgl/style/sources/geojson_source_impl.hpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.hpp b/src/mbgl/style/sources/geojson_source_impl.hpp
index 350045b27c..e6e01c06e9 100644
--- a/src/mbgl/style/sources/geojson_source_impl.hpp
+++ b/src/mbgl/style/sources/geojson_source_impl.hpp
@@ -2,15 +2,8 @@
#include <mbgl/style/sources/geojson_source.hpp>
#include <mbgl/style/source_impl.hpp>
-#include <mbgl/util/rapidjson.hpp>
#include <mbgl/util/variant.hpp>
-namespace mapbox {
-namespace geojsonvt {
-class GeoJSONVT;
-} // namespace geojsonvt
-} // namespace mapbox
-
namespace mbgl {
class AsyncRequest;
@@ -19,15 +12,12 @@ namespace style {
class GeoJSONSource::Impl : public Source::Impl {
public:
- using GeoJSON = std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>;
-
- static std::unique_ptr<GeoJSONSource> parse(const std::string& id, const JSValue&);
- static GeoJSON parseGeoJSON(const JSValue&);
-
- Impl(std::string id, Source&,
- variant<std::string, GeoJSON> urlOrGeoJSON);
+ Impl(std::string id, Source&);
~Impl() final;
+ void setURL(std::string);
+ void setGeoJSON(GeoJSON&&);
+
void load(FileSource&) final;
uint16_t getTileSize() const final {