forked from organicmaps/organicmaps
Framework::GetAddressInfo input point should be in screen coordinates.
This commit is contained in:
parent
635addb515
commit
de92bcb68e
3 changed files with 6 additions and 4 deletions
|
@ -469,8 +469,11 @@ namespace
|
|||
}
|
||||
}
|
||||
|
||||
void Framework::GetAddressInfo(m2::PointD const & pt, AddressInfo & info) const
|
||||
void Framework::GetAddressInfo(m2::PointD const & pxPoint, AddressInfo & info) const
|
||||
{
|
||||
// Input point is in pixel coordinates.
|
||||
m2::PointD const pt = PtoG(pxPoint);
|
||||
|
||||
info.Clear();
|
||||
|
||||
info.m_country = GetCountryName(pt);
|
||||
|
|
|
@ -298,8 +298,7 @@ public:
|
|||
};
|
||||
|
||||
/// Get address information for point on map.
|
||||
/// @param[in] pt Point in mercator coordinates.
|
||||
void GetAddressInfo(m2::PointD const & pt, AddressInfo & info) const;
|
||||
void GetAddressInfo(m2::PointD const & pxPoint, AddressInfo & info) const;
|
||||
|
||||
private:
|
||||
void GetAddressInfo(FeatureType const & ft, m2::PointD const & pt, AddressInfo & info) const;
|
||||
|
|
|
@ -353,7 +353,7 @@ namespace qt
|
|||
}
|
||||
else
|
||||
{
|
||||
m_framework->GetAddressInfo(m_framework->PtoG(pt), info);
|
||||
m_framework->GetAddressInfo(pt, info);
|
||||
}
|
||||
|
||||
// Get feature types under cursor.
|
||||
|
|
Loading…
Add table
Reference in a new issue