forked from organicmaps/organicmaps
Merge pull request #2452 from gardster/poi_displacement
Metro and distinct names filtration fix.
This commit is contained in:
commit
0b296f2e59
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "indexer/cell_id.hpp"
|
||||
#include "indexer/classificator.hpp"
|
||||
#include "indexer/drawing_rules.hpp"
|
||||
#include "indexer/feature_data.hpp"
|
||||
#include "indexer/feature_visibility.hpp"
|
||||
|
@ -122,8 +123,11 @@ public:
|
|||
for (auto const & node : m_storage)
|
||||
{
|
||||
uint32_t scale = node.m_minScale;
|
||||
// Do not filter high level objects.
|
||||
if (scale <= scales::GetUpperWorldScale())
|
||||
// Do not filter high level objects. Including metro and country names.
|
||||
static size_t const maximumIgnoredZoom = feature::GetDrawableScaleRange(
|
||||
classif().GetTypeByPath({"railway", "station", "subway"})).first;
|
||||
|
||||
if (scale <= maximumIgnoredZoom)
|
||||
{
|
||||
AddNodeToSorter(node,scale);
|
||||
acceptedNodes.Add(node);
|
||||
|
|
Loading…
Add table
Reference in a new issue