Enable Live Data

Last updated:

As opposed to static data, which does not change unless data is synchronized, Live Data can change in real time, and these changes can be instantly reflected on the map and in searches.

Common use-cases are:

  • Changing the appearance of meeting rooms or workspace desks on a map, or in a list, based on occupancy information. For example, change the icon in order to indicate that a room is occupied.
  • Changing the position of a POI representing a vehicle.

Support for Live Data requires that server-side integrations are in place. For example, visualizing live occupancy data requires that a calendar or booking system integration is in place. An integration like that is set up in collaboration with MapsPeople.

The following section rely on the existence of Live Position Data. If you do not have access to a MapsIndoors Dataset that have a Live Data integration, you should use our demo API key: d876ff0e60bb430b8fabb145.

Enabling of Live Data through MPMapControl can be done as simple as calling MPMapControl.enableLiveData() with a Domain Type.


By consequence, MPMapControl will manage the Live Data subscriptions needed for the current visible map and provide a default rendering of the Live Updates depending on the Domain Type.

In the context of your view controller showing a map, just add the call somewhere after your initialization of MPMapControl.

class MapViewController: UIViewController {
private var mapControl: MPMapControl?

override func viewDidLoad() {
mapControl = MPMapControl(map: mapView)

Using the demo API key you should now be able to see a "Staff Person" moving from one end to the other at ground floor in The White House main building.

Learn more about controlling and rendering Live Data in MapsIndoors in the introduction to Live Data.


You're at the end of your journey, and you've accomplished a lot! 🎉

  • You learned which prerequisites is needed to start building with MapsIndoors.
  • You loaded a interactive map with MapsIndoors locations and added a floor selector for navigating between floors.
  • You created a search experience to search for specific locations on the map.
  • You added functionality for getting directions from one Location to another.
  • You learned how to enable different types of Live Data Domains in your app.

This concludes the "Getting Started" tutorial. To get more inspiration on what to build next please visit our showcase page to see how other clients use MapsIndoors.