forked from organicmaps/organicmaps
ShowSearchResult, analize m_renderPolicy and call appropriate function.
This commit is contained in:
parent
126ab6021e
commit
bd3dea56eb
1 changed files with 8 additions and 3 deletions
|
@ -3,9 +3,11 @@
|
|||
#include "drawer_yg.hpp"
|
||||
#include "benchmark_provider.hpp"
|
||||
#include "geourl_process.hpp"
|
||||
#include "../gui/controller.hpp"
|
||||
|
||||
#include "../defines.hpp"
|
||||
|
||||
#include "../gui/controller.hpp"
|
||||
|
||||
#include "../platform/settings.hpp"
|
||||
#include "../platform/preferred_languages.hpp"
|
||||
#include "../platform/location.hpp"
|
||||
|
@ -25,6 +27,7 @@
|
|||
#include "../std/target_os.hpp"
|
||||
#include "../std/vector.hpp"
|
||||
|
||||
|
||||
void Framework::AddMap(string const & file)
|
||||
{
|
||||
LOG(LDEBUG, ("Loading map:", file));
|
||||
|
@ -886,8 +889,10 @@ void Framework::ShowSearchResult(search::Result const & res)
|
|||
}
|
||||
|
||||
/// @todo We can't call this fucntion in android because of invalid m_renderPolicy.
|
||||
//ShowRectFixed(r);
|
||||
ShowRect(r);
|
||||
if (m_renderPolicy)
|
||||
ShowRectFixed(r);
|
||||
else
|
||||
ShowRect(r);
|
||||
|
||||
DrawPlacemark(res.GetFeatureCenter());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue