diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-19 11:29:33 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-31 10:15:18 -0700 |
commit | a475f1d81397bc79731e6392692420bd1aa29c41 (patch) | |
tree | dd8f63f138ae4ad90b5ebcfb07a1f4f7007437e1 /src/mbgl/annotation | |
parent | 25eec28588533875c4188c99bf46ed47111601ed (diff) | |
download | qtlocation-mapboxgl-a475f1d81397bc79731e6392692420bd1aa29c41.tar.gz |
[core] Run fixupPolygons on geojson-vt-cpp polygon output
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r-- | src/mbgl/annotation/shape_annotation_impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/annotation/shape_annotation_impl.cpp b/src/mbgl/annotation/shape_annotation_impl.cpp index 29dd4ef957..1da2e4ea9f 100644 --- a/src/mbgl/annotation/shape_annotation_impl.cpp +++ b/src/mbgl/annotation/shape_annotation_impl.cpp @@ -144,6 +144,11 @@ void ShapeAnnotationImpl::updateTile(const CanonicalTileID& tileID, AnnotationTi renderGeometry.push_back(renderLine); } + // https://github.com/mapbox/geojson-vt-cpp/issues/44 + if (featureType == FeatureType::Polygon) { + renderGeometry = fixupPolygons(renderGeometry); + } + layer.features.emplace_back( std::make_shared<AnnotationTileFeature>(featureType, renderGeometry)); } |