forked from organicmaps/organicmaps
Merge pull request #3910 from VladiMihaylenko/master
[ios] Fixed sharing url.
This commit is contained in:
commit
76f2cef625
1 changed files with 3 additions and 2 deletions
|
@ -66,8 +66,9 @@ NSString * httpGe0Url(NSString * shortUrl)
|
|||
return @"";
|
||||
};
|
||||
|
||||
string const s = f.CodeGe0url(self.location.latitude, self.location.longitude, f.GetDrawScale(),
|
||||
title(self.entity).UTF8String);
|
||||
ms::LatLon const ll = self.entity ? self.entity.latlon : ms::LatLon(self.location.latitude, self.location.longitude);
|
||||
string const s = f.CodeGe0url(ll.lat, ll.lon, f.GetDrawScale(), title(self.entity).UTF8String);
|
||||
|
||||
NSString * url = @(s.c_str());
|
||||
if (!isShort)
|
||||
return url;
|
||||
|
|
Loading…
Add table
Reference in a new issue