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:
authorrachytski <siarhei.rachytski@gmail.com>2011-01-28 00:24:47 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:11:04 +0300
commit051138af68637d2ab78228d59e95c33a523baeb0 (patch)
treeff7a5b18e60c66cd30f3bc0830e3452035e6a846 /map/feature_vec_model.cpp
parentf5c67f500f98a760a0d0cecce519d3d70b65a066 (diff)
Setting MaxMercatorRect by default.
Diffstat (limited to 'map/feature_vec_model.cpp')
-rw-r--r--map/feature_vec_model.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/map/feature_vec_model.cpp b/map/feature_vec_model.cpp
index 7b6990b353..a629301a08 100644
--- a/map/feature_vec_model.cpp
+++ b/map/feature_vec_model.cpp
@@ -18,6 +18,11 @@
namespace model
{
+FeaturesFetcher::FeaturesFetcher()
+{
+ Clean();
+}
+
void FeaturesFetcher::InitClassificator()
{
Platform & p = GetPlatform();
@@ -52,7 +57,11 @@ void FeaturesFetcher::RemoveMap(string const & fName)
void FeaturesFetcher::Clean()
{
- m_rect.MakeEmpty();
+ m_rect = m2::RectD(MercatorBounds::minX,
+ MercatorBounds::minY,
+ MercatorBounds::maxX,
+ MercatorBounds::maxY);
+// m_rect.MakeEmpty();
m_multiIndex.Clean();
}