refs #928: 90% of way to genericizing VectorTile
This commit is contained in:
committed by
John Firebaugh
parent
7d06e62363
commit
831264d530
29
src/mbgl/map/geometry_tile.cpp
Normal file
29
src/mbgl/map/geometry_tile.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <mbgl/map/geometry_tile.hpp>
|
||||
#include <mbgl/style/filter_expression_private.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
std::ostream& mbgl::operator<<(std::ostream& os, const GeometryFeatureType& type) {
|
||||
switch (type) {
|
||||
case GeometryFeatureType::Unknown: return os << "Unknown";
|
||||
case GeometryFeatureType::Point: return os << "Point";
|
||||
case GeometryFeatureType::LineString: return os << "LineString";
|
||||
case GeometryFeatureType::Polygon: return os << "Polygon";
|
||||
default: return os << "Invalid";
|
||||
}
|
||||
}
|
||||
|
||||
GeometryTile& GeometryTile::operator=(GeometryTile&& other) {
|
||||
if (this != &other) {
|
||||
layers.swap(other.layers);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
GeometryFilteredTileLayer<T>::iterator::iterator(const GeometryFilteredTileLayer<T>& parent_)
|
||||
: parent(parent_) {
|
||||
operator++();
|
||||
}
|
||||
Reference in New Issue
Block a user