MapstedMapUiViewController
public class MapstedMapUiViewController : UIViewController
extension MapstedMapUiViewController: MNBannerDelegate
extension MapstedMapUiViewController: MNUnreliableDataBannerDelegate
extension MapstedMapUiViewController: UITableViewDelegate
extension MapstedMapUiViewController: UITableViewDataSource
extension MapstedMapUiViewController : ShareLiveLocationListener
extension MapstedMapUiViewController : MNDeepLinkDelegate
-
Declaration
Swift
public static let shared: UIViewController?
-
Allows to enable or disable the From & To labels in Route Preview Mode.
Declaration
Swift
public func enableFromToLabelsOnRoutePreview(enable: Bool, fromLabel: String = "", toLabel: String = "")
Parameters
enable
Boolean to enable the From & To labels.
fromLabel(Optional)
Text that needs to be shown for Source Label (If any text is not set, by default value “From” is shown)
toLabel(Optional)
Text that needs to be shown for Destination Label (If any text is not set, by default value “To” is shown)
-
Declaration
Swift
public func setViewAppearanceDelegate(delegate: HandlerForWhenViewDoesAppear)
-
Declaration
Swift
public func refreshViews()
-
Sets map state delegate.
Declaration
Swift
public func setMapStateDelegate(mapStateDelegate: MNMapStateDelegate)
Parameters
mapStateDelegate
Map state delegate
-
Sets delegate for feed.
Declaration
Swift
public func setFeedDelegate(feedDelegate: MNFeedDelegate)
Parameters
feedDelegate
Feed delegate
-
Sets delegate for feed.
Declaration
Swift
public func setMarketingDelegate(marketingDelegate: LocationMarketingCreativeDelegate)
Parameters
feedDelegate
Feed delegate
-
Sets delegate for sharing location.
Declaration
Swift
public func setShareLocationDelegate(shareLocationDelegate: MNShareLocationDelegate)
Parameters
shareLocationDelegate
Share location delegate
-
Sets delegate for sending feedback.
Declaration
Swift
public func setSendFeedbackDelegate(feedDelegate: MNFeedbackDelegate)
-
Sets delegate for selecting category or others.
Declaration
Swift
public func setSearchDelegate(searchDelegate: MNSearchDelegate)
-
Sets delegate for alerts.
Declaration
Swift
public func setAlertDelegate(alertDelegate: MNAlertDelegate)
-
Declaration
Swift
public func setAlertsTableViewDelegate(alertsTableViewDelegate: AlertsTableViewDelegate?)
-
Allows to clear the routes and route UI.
Declaration
Swift
public func clearAllRouteUi()
-
Draw property on map.
Declaration
Swift
public func displayPropertyOnMap(propertyId: Int, completion: (() -> ())? = nil)
Parameters
propertyId
Property id of the entity.
-
Declaration
Swift
public func displayPropertyOnMapIfReady(ready: Bool, propertyId: Int, completion: (() -> ())? = nil)
-
Declaration
Swift
public func cleanUpProperty()
-
Shows directions screen with the entity as the first destination.
Declaration
Swift
public func routeTo(buildingId: Int, propertyId: Int, entityId: Int, showDirections: Bool = true)
Parameters
buildingId
Building id of the entity.
propertyId
Property id of the entity.
entityId
Entity id of the entity to display.
-
Declaration
Swift
public func navigateTo(searchEntities: [Searchable], fromCurrentLocation: Bool)
-
Call this function to remove all tags from map.
Declaration
Swift
public func clearAllTags()
-
Call this function to delete all tags from database.
Declaration
Swift
public func deleteAllTags()
-
Call this function to refresh tags on map. This needs to be called when a new tag is created or an existing tag is deleted outside map screen.
Declaration
Swift
public func refreshTags(closure: (() -> ())? = nil, plotTags: Bool = true)
-
Call this function to display property on map.
Declaration
Swift
public func displayPropertyOnMap(completion: (() -> ())? = nil)
-
Draw entity on map. Zooms map to location and shows entity information.
Declaration
Swift
public func displayOnMap(dataType: MNDataType? = nil, render: Bool = true, propertyId: Int, buildingId: Int, entityId: Int?, floorId: Int? = -1, completion: (() -> ())? = nil)
Parameters
buildingId
Building id of the entity.
propertyId
Property id of the entity.
entityId
Entity id of the entity to display.
-
Shows Map.
Declaration
Swift
public func displayMap(dataType: MNDataType? = nil, render: Bool = true, propertyId: Int, completion: (() -> ())? = nil)
Parameters
propertyId
Property id
-
Selects and draws property on map if not already drawn. Shows a toast like message prompting user to long tap on map to create tag.
Declaration
Swift
public func createNewTag(propertyId: Int)
Parameters
propertyId
Property id of the property on which to center the map.
-
Declaration
Swift
public func showTagManager(propertyId: Int)
-
Declaration
Swift
public func displayOnMap(tag: MNTag, completion: (() -> ())? = nil)
-
Declaration
Swift
public func viewMapOverlay(item: MapOverlayItem)
-
Declaration
Swift
public override class func awakeFromNib()
-
Declaration
Swift
public override func viewDidLoad()
-
Declaration
Swift
public override func viewWillAppear(_ animated: Bool)
-
Declaration
Swift
public override func viewDidAppear(_ animated: Bool)
-
Declaration
Swift
public override func prepare(for segue: UIStoryboardSegue, sender: Any?)
-
Declaration
Swift
public override func viewWillDisappear(_ animated: Bool)
-
Declaration
Swift
public func showLoadingSpinner(text: String)
-
Declaration
Swift
public func hideLoadingSpinner()
-
Declaration
Swift
public func selectAndDrawProperty(propertyId: Int, callback: @escaping ((Bool) -> Void))
-
Declaration
Swift
public func unloadProperty(propertyId: Int)
-
Declaration
Swift
public func zoomToUserLocation()
-
Declaration
Swift
public func takeToNearest(fromHomeEntities homeEntities: [HomeEntity])
-
Declaration
Swift
public func showAlerts(alerts: [AlertSearchable])
-
Declaration
Swift
public func directTo(alert: AlertSearchable)
-
Declaration
Swift
public func updateBanner()
-
Declaration
Swift
public func updateUnreliableDataBanner()
-
Declaration
Swift
public func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath?
-
Declaration
Swift
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Declaration
Swift
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat
-
Declaration
Swift
public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat
-
Declaration
Swift
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Declaration
Swift
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Declaration
Swift
public func onShareLiveLocationEnabled(enabled: Bool)
-
Declaration
Swift
public func processDeepLink(uri: URL, completion: ((Bool) -> Void)?)
-
Declaration
Swift
public func processDeepLink(path: String, params: [URLQueryItem]?, completion: ((Bool) -> Void)?)
-
Declaration
Swift
public func showEntityChooser(entities: [ISearchable], name: String = "Points of Interest")