summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/custom_tile.hpp
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-09-25 11:38:04 -0700
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-10-10 16:51:48 -0700
commit24dff5b4f4ae781dd4ab1b814cc0b2a46b158d80 (patch)
tree15153d99a92c888dbb6a17801cd432105311c1d8 /src/mbgl/tile/custom_tile.hpp
parent1624a523105b709259e7222cf645598c342e0a9e (diff)
downloadqtlocation-mapboxgl-24dff5b4f4ae781dd4ab1b814cc0b2a46b158d80.tar.gz
actor ref-actor
Diffstat (limited to 'src/mbgl/tile/custom_tile.hpp')
-rw-r--r--src/mbgl/tile/custom_tile.hpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mbgl/tile/custom_tile.hpp b/src/mbgl/tile/custom_tile.hpp
index 66606d2224..734ea2bac1 100644
--- a/src/mbgl/tile/custom_tile.hpp
+++ b/src/mbgl/tile/custom_tile.hpp
@@ -9,14 +9,17 @@ namespace mbgl {
class TileParameters;
+namespace style {
+
class CustomTile: public GeometryTile {
public:
CustomTile(const OverscaledTileID&,
std::string sourceID,
const TileParameters&,
- const style::GeoJSONOptions);
-
- void setTileData(const CanonicalTileID& tileID, const style::FetchTileResult& result);
+ const style::GeoJSONOptions,
+ ActorRef<style::CustomTileLoader> loader);
+ ~CustomTile() override;
+ void setTileData(const CanonicalTileID& tileID, const mapbox::geojson::geojson& data);
void setNecessity(Necessity) final;
@@ -24,10 +27,12 @@ public:
std::vector<Feature>& result,
const SourceQueryOptions&) override;
- ActorRef<style::FetchTileCallback> fetchTileCallback();
private:
+ Necessity necessity;
const style::GeoJSONOptions options;
- Actor<style::FetchTileCallback> actor;
+ ActorRef<style::CustomTileLoader> loader;
+ Actor<style::SetTileDataFunction> actor;
};
+} // namespace style
} // namespace mbgl