[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.
This commit is contained in:
John Firebaugh
2016-05-11 13:54:05 -07:00
parent 5f1144f05a
commit 1a030e7c33
12 changed files with 9 additions and 54 deletions

View File

@@ -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;