MapstedMapUiInternalViewController
public final class MapstedMapUiInternalViewController : UIViewController, UIGestureRecognizerDelegate
extension MapstedMapUiInternalViewController : EntityChoiceSelectionHandler
extension MapstedMapUiInternalViewController: UISearchBarDelegate
extension MapstedMapUiInternalViewController : UICollectionViewDelegate
extension MapstedMapUiInternalViewController : UICollectionViewDataSource
extension MapstedMapUiInternalViewController : UICollectionViewDelegateFlowLayout
extension MapstedMapUiInternalViewController: MNMapVectorTileEventListenerDelegate
extension MapstedMapUiInternalViewController: MNMapListenerDelegate
extension MapstedMapUiInternalViewController: NearbyPropertiesListener
extension MapstedMapUiInternalViewController: PositionChangeListener
extension MapstedMapUiInternalViewController: PositionAnimationListener
extension MapstedMapUiInternalViewController: PositionVisibilityListener
extension MapstedMapUiInternalViewController: MNMapVectorElementListenerDelegate
extension MapstedMapUiInternalViewController: MapSelectionProtocol
extension MapstedMapUiInternalViewController: MNSearchDelegate
extension MapstedMapUiInternalViewController : AlertSelectionDelegate
extension MapstedMapUiInternalViewController: RoutingRequestCallback
extension MapstedMapUiInternalViewController: KWCollectionViewDelegate
-
Declaration
Swift
public var isDisplaying: Bool
-
Use shared to get an instance of MNMapUIKitViewController to present in your app.
Declaration
Swift
public static let shared: UIViewController?
-
Declaration
Swift
public var alertsTableViewDelegate: AlertsTableViewDelegate?
-
Declaration
Swift
public static func className() -> String
-
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 setBannerDelegate(bannerDelegate: MNBannerDelegate)
-
Declaration
Swift
public func setAlertsTableViewDelegate(alertsTableViewDelegate: AlertsTableViewDelegate?)
-
Declaration
Swift
override public func viewDidLoad()
-
Declaration
Swift
override public func viewDidAppear(_ animated: Bool)
-
Declaration
Swift
override public func viewWillAppear(_ animated: Bool)
-
Declaration
Swift
public func downloadAndRenderProperty(propertyId: Int, completion: (() -> ())? = nil)
-
Declaration
Swift
public func updateSelectedPropertyInfo()
-
Declaration
Swift
public override func viewWillDisappear(_ animated: Bool)
-
Declaration
Swift
override public func prepare(for segue: UIStoryboardSegue, sender: Any?)
-
Declaration
Swift
public func showLoadingSpinner(text: String)
-
Declaration
Swift
public func hideLoadingSpinner()
-
Selects and draws property on map.
Declaration
Swift
public func selectAndDrawProperty(propertyId: Int, callback: @escaping ((Bool) -> Void))
Parameters
propertyId
Property id of the property to draw.
callback
The callback that gets called after property is drawn.
-
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)
-
Zooms map to entity and selects entity.
Declaration
Swift
public func zoomToEntity(buildingId: Int, propertyId: Int, entityId: Int)
Parameters
buildingId
Building id of the entity.
propertyId
Property id of the entity.
entityId
Entity id of the entity to display.
-
Zooms map to desired level (0-20).
Declaration
Swift
public func zoomTo(location: MNMercator, zoomLevel: Float)
Parameters
location
location to zoom to
-
Zooms map to desired level (0-20).
Declaration
Swift
public func zoomTo(level: Float)
Parameters
level
Zoom level
-
Zooms map to user location.
Declaration
Swift
public func zoomToUserLocation()
-
Declaration
Swift
public func displayOnMap(tag: MNTag, completion: (() -> ())? = nil)
-
Declaration
Swift
public func displayOnMap(dataType: MNDataType? = nil, render: Bool = true, propertyId: Int, buildingId: Int, entityId: Int, completion: (() -> ())? = nil)
-
Gets banner text to show above map. If text is nil, no banner should be shown.
Declaration
Swift
public func connectWifiBluetoothBannerText() -> String?
-
Draw property on map.
Declaration
Swift
public func displayPropertyOnMap(propertyId: Int, completion: (() -> ())? = nil)
Parameters
propertyId
Property id of the entity.
-
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.
-
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()
-
Call this function to show new friend locations or update existing locations.
Declaration
Swift
public func displayFriendLocations(friends: [MNShareLocationItem], bgColor: UIColor = UIColor.systemPurple, margin: CGFloat = 8)
Parameters
friends
List of friends.
-
Call this function to remove friend location from map for example when sharing location is stopped.
Declaration
Swift
public func deleteFriendLocations(friends: [MNShareLocationItem])
Parameters
friends
List of friends.
-
Declaration
Swift
public func enableFromToLabelsOnRoutePreview(enable: Bool, fromLabel: String = "", toLabel: String = "")
-
Declaration
Swift
public func selectEntity(searchable: Searchable, hostVC: UIViewController?)
-
Declaration
Swift
public func selectNearest(group: CMSSearchEntityGroup, hostVC: UIViewController?)
-
Declaration
Swift
public func exitChooser(hostVC: UIViewController?)
-
Declaration
Swift
public func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String)
-
Declaration
Swift
public func searchBarCancelButtonClicked(_ searchBar: UISearchBar)
-
Declaration
Swift
public func searchBarSearchButtonClicked(_ searchBar: UISearchBar)
-
Declaration
Swift
public func searchBarTextDidBeginEditing(_ searchBar: UISearchBar)
-
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
-
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
-
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
-
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
-
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets
-
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat
-
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat
-
Declaration
Swift
public func onTileBalloonClicked(searchEntity: MNSearchEntity)
-
Declaration
Swift
public func onTileMarkerTapped(markerName: String, markerType: String)
-
Declaration
Swift
public func onTileEntityTapped(entity: MNMapEntity, tapType: MapstedMapApi.TapType, tapPos: MNMercator)
-
Declaration
Swift
public func onTilePolygonTapped(polygon: MNMapPolygon, tapType: MapstedMapApi.TapType, tapPos: MNMercator)
-
Declaration
Swift
public func onMapIdle()
-
Declaration
Swift
public func onPositionAnimation(position: MNPosition, animationBegins: Bool)
-
Declaration
Swift
public func setPositionVisibility(visible: Bool)
-
Declaration
Swift
public func onMarkerTapped(markerName: String, markerType: String)
-
Declaration
Swift
public func showTagLocation(tag: MNTag)
-
Call this function to hide the Mapsted Map’s searchbar.
Declaration
Swift
public func hideSearchBar(hidden: Bool)
Parameters
hidden
true if hide the search bar.
-
Call this function to add a tag on Mapsted Map.
Declaration
Swift
public func addTag(tagName: String, tagPos: MNPosition, closure: (() -> ())? = nil)
Parameters
tagName
The name of tag.
tagPos
The position of tag.
-
Call this function to add tags on Mapsted Map.
Declaration
Swift
public func addTags(tags: [MNTag])
Parameters
tags
The list of tag.
-
Declaration
Swift
public func showAlerts(alerts: [AlertSearchable])
-
Declaration
Swift
public func makeChooseFrom(searchEntityGroup: CMSSearchEntityGroup)
-
Declaration
Swift
public func selectCategory(category: CMSCategory)
-
Declaration
Swift
public func selectAlert(alert: AlertSearchable)
-
Declaration
Swift
public func selectMapOverlayItem(item: MapOverlayItem)
-
Declaration
Swift
public func takeToNearest(fromHomeEntities homeEntities: [HomeEntity])
-
Declaration
Swift
public func didSelect(alert: AlertSearchable)
-
Declaration
Swift
public func didSelect(item: MapOverlayItem)
-
Declaration
Swift
public func onSuccess(routeResponse: MNRouteResponse)
-
Declaration
Swift
public func onError(errorCode: Int, errorMessage: String, alertIds: [String])
-
Declaration
Swift
public func keywordIsBeingAdded(name: CMSCategory?)
-
Declaration
Swift
public func keywordIsBeingRemoved(name: CMSCategory?)