mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[ios] Fixed issues with Panoramax button not working as intented
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
b4f115a8fa
commit
a985bf8349
@@ -54,6 +54,7 @@ constexpr string_view kUrlTwitter{"https://twitter.com/"};
|
|||||||
constexpr string_view kUrlVk{"https://vk.com/"};
|
constexpr string_view kUrlVk{"https://vk.com/"};
|
||||||
constexpr string_view kUrlLine{"https://line.me/R/ti/p/@"};
|
constexpr string_view kUrlLine{"https://line.me/R/ti/p/@"};
|
||||||
constexpr string_view kUrlBluesky{"https://bsky.app/profile/"};
|
constexpr string_view kUrlBluesky{"https://bsky.app/profile/"};
|
||||||
|
constexpr string_view kUrlPanoramax{"https://api.panoramax.xyz/?pic="};
|
||||||
constexpr string_view kHttp{"http://"};
|
constexpr string_view kHttp{"http://"};
|
||||||
constexpr string_view kHttps{"https://"};
|
constexpr string_view kHttps{"https://"};
|
||||||
|
|
||||||
@@ -673,6 +674,8 @@ string socialContactToURL(MapObject::MetadataID metaID, string_view value)
|
|||||||
return string{kUrlLine}.append(value);
|
return string{kUrlLine}.append(value);
|
||||||
else // 'value' is an URL.
|
else // 'value' is an URL.
|
||||||
return string{kHttps}.append(value);
|
return string{kHttps}.append(value);
|
||||||
|
case MapObject::MetadataID::FMD_PANORAMAX:
|
||||||
|
return string{kUrlPanoramax}.append(value);
|
||||||
default:
|
default:
|
||||||
return string{value};
|
return string{value};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ class PlacePageInfoViewController: UIViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let panoramax = placePageInfoData.panoramax {
|
if let panoramax = placePageInfoData.panoramax {
|
||||||
panoramaxView = createInfoItem(panoramax,
|
panoramaxView = createInfoItem(L("panoramax"),
|
||||||
icon: UIImage(named: "ic_placepage_panoramax"),
|
icon: UIImage(named: "ic_placepage_panoramax"),
|
||||||
style: .link,
|
style: .link,
|
||||||
tapHandler: { [weak self] in
|
tapHandler: { [weak self] in
|
||||||
|
|||||||
Reference in New Issue
Block a user