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:
authorAlex Zolotarev <deathbaba@gmail.com>2013-01-14 17:33:22 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:48:41 +0300
commit755f9c5f089620e29ea55da1041a327d391157e0 (patch)
tree7df3a789d8f74cacbe1fb2c431627db15dc905b2 /map/geourl_process.cpp
parent82eb0eef4a5a5550890881a611b9722abfa199c7 (diff)
Added public method to better process geo:// url scheme
Diffstat (limited to 'map/geourl_process.cpp')
-rw-r--r--map/geourl_process.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/map/geourl_process.cpp b/map/geourl_process.cpp
index 4f4c17c438..9d628534d0 100644
--- a/map/geourl_process.cpp
+++ b/map/geourl_process.cpp
@@ -18,12 +18,13 @@ namespace url_scheme
{
ASSERT ( IsValid(), () );
- return scales::GetRectForLevel(m_zoom,
- m2::PointD(MercatorBounds::LonToX(m_lon),
- MercatorBounds::LatToY(m_lat)),
- 1.0);
+ return scales::GetRectForLevel(m_zoom, GetMercatorPoint(), 1.0);
}
+ m2::PointD Info::GetMercatorPoint() const
+ {
+ return m2::PointD(MercatorBounds::LonToX(m_lon), MercatorBounds::LatToY(m_lat));
+ }
class DoGeoParse
{