Fix symbol-placement: line + {icon,text}-rotation-alignment: viewport

Fixes #3004
This commit is contained in:
John Firebaugh
2015-11-11 17:09:28 -08:00
parent 65eae8a997
commit 7621a41158

View File

@@ -125,8 +125,8 @@ std::unique_ptr<Bucket> SymbolLayer::createBucket(StyleBucketParameters& paramet
StyleCalculationParameters p(parameters.tileID.z);
bucket->layout.placement.calculate(p);
if (bucket->layout.placement.value == PlacementType::Line) {
bucket->layout.icon.rotationAlignment = RotationAlignmentType::Map;
bucket->layout.text.rotationAlignment = RotationAlignmentType::Map;
bucket->layout.icon.rotationAlignment.value = RotationAlignmentType::Map;
bucket->layout.text.rotationAlignment.value = RotationAlignmentType::Map;
};
bucket->layout.spacing.calculate(p);
bucket->layout.avoidEdges.calculate(p);