diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-16 16:33:24 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-17 13:20:25 -0700 |
commit | 3c49fdc99d9177a2751361f3151cc562aa1f77a3 (patch) | |
tree | 719a95c6e75f48f0668f85a8860a809e891d0672 /src/mbgl/geometry/feature_index.cpp | |
parent | b7d395fcf64f4098f3a3ca01f8613f2249d60fa3 (diff) | |
download | qtlocation-mapboxgl-3c49fdc99d9177a2751361f3151cc562aa1f77a3.tar.gz |
[core] Feature IDs are always integers
Diffstat (limited to 'src/mbgl/geometry/feature_index.cpp')
-rw-r--r-- | src/mbgl/geometry/feature_index.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mbgl/geometry/feature_index.cpp b/src/mbgl/geometry/feature_index.cpp index d3d523af0a..fb68b572b1 100644 --- a/src/mbgl/geometry/feature_index.cpp +++ b/src/mbgl/geometry/feature_index.cpp @@ -123,11 +123,7 @@ void FeatureIndex::addFeature( Feature feature { mapbox::geometry::point<double>() }; feature.properties = geometryTileFeature->getProperties(); - - optional<uint64_t> id = geometryTileFeature->getID(); - if (id) { - feature.id = Value(*id); - } + feature.id = geometryTileFeature->getID(); result[layerID].push_back(std::move(feature)); } |