diff options
Diffstat (limited to 'src/mbgl/tile/custom_tile.cpp')
-rw-r--r-- | src/mbgl/tile/custom_tile.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/tile/custom_tile.cpp b/src/mbgl/tile/custom_tile.cpp index db9efaab95..926f608f87 100644 --- a/src/mbgl/tile/custom_tile.cpp +++ b/src/mbgl/tile/custom_tile.cpp @@ -21,14 +21,14 @@ CustomTile::CustomTile(const OverscaledTileID& overscaledTileID, necessity(Resource::Optional), options(options_), loader(loader_), - actor(*Scheduler::GetCurrent(), std::bind(&CustomTile::setTileData, this, std::placeholders::_1, std::placeholders::_2)) { + actor(*Scheduler::GetCurrent(), std::bind(&CustomTile::setTileData, this, std::placeholders::_1)) { } CustomTile::~CustomTile() { - loader.invoke(&style::CustomTileLoader::removeTile, id.canonical); + loader.invoke(&style::CustomTileLoader::removeTile, id); } -void CustomTile::setTileData(const CanonicalTileID&, const mapbox::geojson::geojson& geoJSON) { +void CustomTile::setTileData(const mapbox::geojson::geojson& geoJSON) { auto featureData = mapbox::geometry::feature_collection<int16_t>(); if (geoJSON.is<FeatureCollection>() && !geoJSON.get<FeatureCollection>().empty()) { @@ -49,9 +49,9 @@ void CustomTile::setNecessity(Necessity newNecessity) { if (newNecessity != necessity) { necessity = newNecessity; if (necessity == Necessity::Required) { - loader.invoke(&style::CustomTileLoader::fetchTile, id.canonical, actor.self()); + loader.invoke(&style::CustomTileLoader::fetchTile, id, actor.self()); } else if(!isRenderable()) { - loader.invoke(&style::CustomTileLoader::cancelTile, id.canonical); + loader.invoke(&style::CustomTileLoader::cancelTile, id); } } } |