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: ValidBlueDotCallbackListener
extension MapstedMapUiInternalViewController: MNMapVectorElementListenerDelegate
extension MapstedMapUiInternalViewController: MapSelectionProtocol
extension MapstedMapUiInternalViewController: MNSearchDelegate
extension MapstedMapUiInternalViewController : AlertSelectionDelegate
extension MapstedMapUiInternalViewController: RoutingRequestCallback
extension MapstedMapUiInternalViewController: KWCollectionViewDelegate
extension MapstedMapUiInternalViewController: POIInfoViewControllerDelegate

OUTLETS

Public APIs

  • Declaration

    Swift

    public func selectAndDrawProperty(propertyId: Int, callback: @escaping ((Bool) -> Void))
  • 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?, floorId: Int? = -1, completion: (() -> ())? = nil)
  • Declaration

    Swift

    public func displayMap(dataType: MNDataType? = nil, render: Bool = true, propertyId: 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.

  • Declaration

    Swift

    public func displayPropertyOnMapIfReady(ready: Bool, propertyId: Int, completion: (() -> ())? = nil)
  • 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()

UI

Utilities

Calibration Delegates

Map Vector Tile Delegates

Map Delegates

Change UI to respond to change in routing state