forked from organicmaps/organicmaps
[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>
This commit is contained in:
parent
13ccd663c2
commit
943a8ff895
3 changed files with 1 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue