diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-11 13:54:05 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-11 13:54:05 -0700 |
commit | 1a030e7c3347f08329d2787cde37cfa0958baad4 (patch) | |
tree | e9ec309eda3de6edc411824e76df632730d41064 /src/mbgl/annotation/shape_annotation_impl.cpp | |
parent | 5f1144f05a8391cf2c01dc7a67312a27ef32805b (diff) | |
download | qtlocation-mapboxgl-1a030e7c3347f08329d2787cde37cfa0958baad4.tar.gz |
[core] Normalize tile coordinates in VectorTile (#4966)
Previously, vector tile coordinates were being normalized to util::EXTENT in each place they were used, and for annotation and GeoJSON sources that don't require normalization.
Diffstat (limited to 'src/mbgl/annotation/shape_annotation_impl.cpp')
-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 4ed06a5540..9b9ea3bf26 100644 --- a/src/mbgl/annotation/shape_annotation_impl.cpp +++ b/src/mbgl/annotation/shape_annotation_impl.cpp @@ -85,7 +85,7 @@ void ShapeAnnotationImpl::updateTile(const CanonicalTileID& tileID, AnnotationTi if (!shapeTiler) { const uint64_t maxAmountOfTiles = 1 << maxZoom; - const double tolerance = baseTolerance / (maxAmountOfTiles * GeometryTileFeature::defaultExtent); + const double tolerance = baseTolerance / (maxAmountOfTiles * util::EXTENT); geojsonvt::ProjectedRings rings; std::vector<geojsonvt::LonLat> points; |