[core] move TileData and dependents to new *TileID classes

This commit is contained in:
Konstantin Käfer
2016-05-10 11:47:54 +02:00
parent bdcbceff80
commit ec70125e41
43 changed files with 181 additions and 155 deletions

View File

@@ -11,7 +11,8 @@
namespace mbgl {
class TileID;
class CanonicalTileID;
class UnwrappedTileID;
using ScreenCoordinate = mapbox::geometry::point<double>;
@@ -49,7 +50,8 @@ public:
}
// Constructs a LatLng object with the top left position of the specified tile.
LatLng(const TileID& id);
LatLng(const CanonicalTileID& id);
LatLng(const UnwrappedTileID& id);
};
inline bool operator==(const LatLng& a, const LatLng& b) {
@@ -100,7 +102,7 @@ public:
}
// Constructs a LatLngBounds object with the tile's exact boundaries.
LatLngBounds(const TileID&);
LatLngBounds(const CanonicalTileID&);
double south() const { return sw.latitude; }
double west() const { return sw.longitude; }