From 5c7dfd948ffd52f2b60dcfe052176da788f17893 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 13 Jun 2016 10:59:33 -0700 Subject: =?UTF-8?q?[core]=20*Tile=20=E2=86=94=20*TileData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tile is now the main base class; RasterTile, VectorTile, etc are its subclasses. GeometryTileData and its subclasses form the piece that's passed to the worker. --- src/mbgl/annotation/annotation_tile.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mbgl/annotation/annotation_tile.cpp') diff --git a/src/mbgl/annotation/annotation_tile.cpp b/src/mbgl/annotation/annotation_tile.cpp index 48415c4f34..92234f5000 100644 --- a/src/mbgl/annotation/annotation_tile.cpp +++ b/src/mbgl/annotation/annotation_tile.cpp @@ -8,19 +8,19 @@ namespace mbgl { -AnnotationTileData::AnnotationTileData(const OverscaledTileID& overscaledTileID, - std::string sourceID, - const style::UpdateParameters& parameters) - : GeometryTileData(overscaledTileID, sourceID, parameters.style, parameters.mode), +AnnotationTile::AnnotationTile(const OverscaledTileID& overscaledTileID, + std::string sourceID, + const style::UpdateParameters& parameters) + : GeometryTile(overscaledTileID, sourceID, parameters.style, parameters.mode), annotationManager(parameters.annotationManager) { - annotationManager.addTileData(*this); + annotationManager.addTile(*this); } -AnnotationTileData::~AnnotationTileData() { - annotationManager.removeTileData(*this); +AnnotationTile::~AnnotationTile() { + annotationManager.removeTile(*this); } -void AnnotationTileData::setNecessity(Necessity) {} +void AnnotationTile::setNecessity(Necessity) {} AnnotationTileFeature::AnnotationTileFeature(FeatureType type_, GeometryCollection geometries_, std::unordered_map properties_) @@ -39,7 +39,7 @@ optional AnnotationTileFeature::getValue(const std::string& key) const { AnnotationTileLayer::AnnotationTileLayer(const std::string &name_) : name(name_) {} -util::ptr AnnotationTile::getLayer(const std::string& name) const { +util::ptr AnnotationTileData::getLayer(const std::string& name) const { auto it = layers.find(name); if (it != layers.end()) { return it->second; -- cgit v1.2.1