diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-08-16 18:25:49 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:59:46 +0300 |
commit | 3af0d9021bf1cbd53142ad9303cab21754f667fe (patch) | |
tree | 29729bf523a597284c841d1f22dfffe27aaf1989 /map/mwm_url.cpp | |
parent | e2dd416da70ceb04f756cba5a33b3acfb103ef45 (diff) |
[api]New Parameter added. If parameter added to url, it allows open app with balloon click.
Diffstat (limited to 'map/mwm_url.cpp')
-rw-r--r-- | map/mwm_url.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/map/mwm_url.cpp b/map/mwm_url.cpp index eea9f97ceb..7794708884 100644 --- a/map/mwm_url.cpp +++ b/map/mwm_url.cpp @@ -23,11 +23,11 @@ bool IsInvalidApiPoint(ApiPoint const & p) { return p.m_lat == INVALID_LAT_VALUE } // unnames namespace -ParsedMapApi::ParsedMapApi() : m_version(0), m_zoomLevel(0.0) +ParsedMapApi::ParsedMapApi() : m_version(0), m_zoomLevel(0.0), m_goBackOnBalloonClick(false) { } -ParsedMapApi::ParsedMapApi(Uri const & uri) : m_version(0), m_zoomLevel(0.0) +ParsedMapApi::ParsedMapApi(Uri const & uri) : m_version(0), m_zoomLevel(0.0), m_goBackOnBalloonClick(false) { if (!Parse(uri)) Reset(); @@ -132,6 +132,10 @@ void ParsedMapApi::AddKeyValue(string key, string const & value) { m_appTitle = value; } + else if (key == "balloonaction") + { + m_goBackOnBalloonClick = true; + } } void ParsedMapApi::Reset() @@ -142,6 +146,7 @@ void ParsedMapApi::Reset() m_version = 0; m_showRect = m2::RectD(); m_zoomLevel = 0.0; + m_goBackOnBalloonClick = false; } bool ParsedMapApi::GetViewport(m2::PointD & pt, double & zoom) const |