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

OUTLETS

Public APIs

  • 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.

UI

Calibration Delegates

Map Vector Tile Delegates

Map Delegates

  • 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.

Change UI to respond to change in routing state