diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-02 14:46:45 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-02 14:47:35 -0700 |
commit | 1fb96d38a0036532ed8d9f5a818d8aabdfa942da (patch) | |
tree | 1640d3ece3a35890e8cc51df1c97482f423eef4e /src | |
parent | 2c8d225cf2fc50093bf076e5db3c3d4361403c50 (diff) | |
download | qtlocation-mapboxgl-1fb96d38a0036532ed8d9f5a818d8aabdfa942da.tar.gz |
[tests] Tweak LineAnnotation test so that it reveals a bug; fix the bug
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/annotation/shape_annotation_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/annotation/shape_annotation_impl.cpp b/src/mbgl/annotation/shape_annotation_impl.cpp index a2dc4c8093..283e736c6d 100644 --- a/src/mbgl/annotation/shape_annotation_impl.cpp +++ b/src/mbgl/annotation/shape_annotation_impl.cpp @@ -27,7 +27,7 @@ struct ToGeoJSONVT { geojsonvt::ProjectedFeature operator()(const LineString<double>& line) const { geojsonvt::ProjectedRings converted; - converted.push_back(convertPoints(geojsonvt::ProjectedFeatureType::Polygon, line)); + converted.push_back(convertPoints(geojsonvt::ProjectedFeatureType::LineString, line)); return convertFeature(geojsonvt::ProjectedFeatureType::LineString, converted); } |