Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
943a8ff895 [drape] Make path_texts use minVisibleScale for rendering order
Like all other overlays.

Needed-for: #4314

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-02-10 15:14:15 +00:00
3 changed files with 1 additions and 6 deletions

View file

@ -348,11 +348,6 @@ void PathTextHandle::GetAttributeMutation(ref_ptr<dp::AttributeBufferMutator> mu
TextHandle::GetAttributeMutation(mutator);
}
uint64_t PathTextHandle::GetPriorityMask() const
{
return dp::kPriorityMaskManual | dp::kPriorityMaskRank;
}
bool PathTextHandle::Enable3dExtention() const
{
// Do not extend overlays for path texts.

View file

@ -60,7 +60,6 @@ public:
m2::RectD GetPixelRect(ScreenBase const & screen, bool perspective) const override;
void GetPixelShape(ScreenBase const & screen, bool perspective, Rects & rects) const override;
void GetAttributeMutation(ref_ptr<dp::AttributeBufferMutator> mutator) const override;
uint64_t GetPriorityMask() const override;
bool Enable3dExtention() const override;
bool HasLinearFeatureShape() const override;

View file

@ -363,6 +363,7 @@ void RuleDrawer::ProcessLineStyle(FeatureType & f, Stylist const & s,
if (needAdditional && !clippedSplines.empty())
{
minVisibleScale = feature::GetMinDrawableScale(f);
ApplyLineFeatureAdditional applyAdditional(m_context->GetTileKey(), insertShape, f.GetID(),
m_currentScaleGtoP, minVisibleScale, f.GetRank(),
s.GetCaptionDescription(), clippedSplines);