diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2015-03-29 10:44:05 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:04:12 +0300 |
commit | bd950780e20ed589d30a86c0aef0d063f36a4ebe (patch) | |
tree | 6dddae88d17d0aa49e40eaafde7d0502d8c48426 /drape_frontend/map_data_provider.cpp | |
parent | b2a14b8be33462f49284cb399368c85f1685ab45 (diff) |
[drape] country status logic
Diffstat (limited to 'drape_frontend/map_data_provider.cpp')
-rw-r--r-- | drape_frontend/map_data_provider.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drape_frontend/map_data_provider.cpp b/drape_frontend/map_data_provider.cpp index b0fad6ba0e..9adadbddaa 100644 --- a/drape_frontend/map_data_provider.cpp +++ b/drape_frontend/map_data_provider.cpp @@ -3,9 +3,12 @@ namespace df { -MapDataProvider::MapDataProvider(TReadIDsFn const & idsReader, TReadFeaturesFn const & featureReader) +MapDataProvider::MapDataProvider(TReadIDsFn const & idsReader, + TReadFeaturesFn const & featureReader, + TResolveCountryFn const & countryResolver) : m_featureReader(featureReader) , m_idsReader(idsReader) + , m_countryResolver(countryResolver) { } @@ -19,4 +22,9 @@ void MapDataProvider::ReadFeatures(TReadFeatureCallback const & fn, vector<Featu m_featureReader(fn, ids); } +storage::TIndex MapDataProvider::FindCountry(m2::PointF const & pt) +{ + return m_countryResolver(pt); +} + } |