Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2024-06-19 17:59:52 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
80194da894e54d30e3cfaf8de8ff15757fe8bb3e
80194da8
1 parent
6929f62f
fix coupon map pins
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MapsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MapsViewController.swift
View file @
80194da
...
...
@@ -475,21 +475,27 @@ import MapKit
let
currentMerchant
=
merchantModel
if
let
parent
=
self
.
parentMerchantsArray
.
first
(
where
:
{(
$0
.
_uuid
==
currentMerchant
.
_parent
)}
)
{
let
currentMerchantParent
=
parent
if
(
self
.
isMarket
==
true
)
{
if
(
self
.
isMarket
==
true
)
{
if
let
parent
=
self
.
parentMerchantsArray
.
first
(
where
:
{(
$0
.
_uuid
==
currentMerchant
.
_parent
)})
{
let
currentMerchantParent
=
parent
logoImageView
.
load
(
link
:
currentMerchantParent
.
_img_preview
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
pinImageView
.
addSubview
(
logoImageView
)
annotationView
?
.
addSubview
(
pinImageView
)
return
annotationView
}
else
{
logoImageView
.
load
(
link
:
currentMerchant
.
_img_preview
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
return
nil
}
}
else
{
logoImageView
.
load
(
link
:
currentMerchant
.
_img_preview
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
pinImageView
.
addSubview
(
logoImageView
)
annotationView
?
.
addSubview
(
pinImageView
)
return
annotationView
}
else
{
return
nil
}
}
else
{
...
...
Please
register
or
login
to post a comment