Merge pull request #2452 from gardster/poi_displacement

Metro and distinct names filtration fix.
This commit is contained in:
Viktor Govako 2016-03-24 13:25:42 +03:00
commit 0b296f2e59

View file

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