Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarafei Praliaskouski <komzpa@gmail.com>2013-04-26 17:51:27 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:53:56 +0300
commit040d6c1253f475c7f9a5063dd17d5a9ccb7333fb (patch)
tree1d9317b701f090b420d173c7a442f400e6d1bfa7 /indexer/classificator.cpp
parent753b0bf20309931b75776e335fdc2927d892bc56 (diff)
[map] unlocked styling for z19
Diffstat (limited to 'indexer/classificator.cpp')
-rw-r--r--indexer/classificator.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indexer/classificator.cpp b/indexer/classificator.cpp
index 439598d9ac..d6a9b9e063 100644
--- a/indexer/classificator.cpp
+++ b/indexer/classificator.cpp
@@ -1,5 +1,6 @@
#include "classificator.hpp"
#include "tree_structure.hpp"
+#include "scales.hpp"
#include "../coding/file_reader.hpp"
@@ -81,10 +82,13 @@ void ClassifObject::LoadPolicy::Serialize(string const & s)
drule::Key key;
key.fromString(s);
- //p->m_drawRule.push_back(key);
-
// mark as visible in rule's scale
p->m_visibility[key.m_scale] = true;
+
+ // mark objects visible on higher zooms as visible on upperScale, to get them into .mwm file
+ int const upperScale = scales::GetUpperScale();
+ if (key.m_scale > upperScale)
+ p->m_visibility[upperScale] = true;
}
void ClassifObject::LoadPolicy::Start(size_t i)