summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-10-04 16:56:34 -0700
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-10-10 16:53:14 -0700
commit5ff455b63a88dbf82ef210b78adb0bbcbd9e8c76 (patch)
tree05aa4c4d2ffc9d139c5017b47c5e3b362cf74919
parent35c9d71466b73f88732373d2358584364a6dafe0 (diff)
downloadqtlocation-mapboxgl-5ff455b63a88dbf82ef210b78adb0bbcbd9e8c76.tar.gz
Fix formatting
-rw-r--r--src/mbgl/tile/custom_tile.cpp10
-rw-r--r--src/mbgl/tile/custom_tile.hpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/mbgl/tile/custom_tile.cpp b/src/mbgl/tile/custom_tile.cpp
index 926f608f87..9aa06f4838 100644
--- a/src/mbgl/tile/custom_tile.cpp
+++ b/src/mbgl/tile/custom_tile.cpp
@@ -29,7 +29,7 @@ CustomTile::~CustomTile() {
}
void CustomTile::setTileData(const mapbox::geojson::geojson& geoJSON) {
-
+
auto featureData = mapbox::geometry::feature_collection<int16_t>();
if (geoJSON.is<FeatureCollection>() && !geoJSON.get<FeatureCollection>().empty()) {
const double scale = util::EXTENT / options.tileSize;
@@ -55,14 +55,14 @@ void CustomTile::setNecessity(Necessity newNecessity) {
}
}
}
-
+
void CustomTile::querySourceFeatures(
std::vector<Feature>& result,
const SourceQueryOptions& queryOptions) {
-
+
// Ignore the sourceLayer, there is only one
auto layer = getData()->getLayer({});
-
+
if (layer) {
auto featureCount = layer->featureCount();
for (std::size_t i = 0; i < featureCount; i++) {
@@ -72,7 +72,7 @@ void CustomTile::querySourceFeatures(
if (queryOptions.filter && !(*queryOptions.filter)(*feature)) {
continue;
}
-
+
result.push_back(convertFeature(*feature, id.canonical));
}
}
diff --git a/src/mbgl/tile/custom_tile.hpp b/src/mbgl/tile/custom_tile.hpp
index 7973d57a0b..aaf44cb378 100644
--- a/src/mbgl/tile/custom_tile.hpp
+++ b/src/mbgl/tile/custom_tile.hpp
@@ -22,11 +22,11 @@ public:
void setTileData(const mapbox::geojson::geojson& data);
void setNecessity(Necessity) final;
-
+
void querySourceFeatures(
std::vector<Feature>& result,
const SourceQueryOptions&) override;
-
+
private:
Necessity necessity;
const style::GeoJSONOptions options;