We are using Pro Maps and now we are encountering this issue,
I’m trying to render a multi-building map using the key, secret, and mapId. Since we have two mapIds (as we are working with multiple buildings), I’m unsure how to include both.
There are two ways to approach this. If the buildings are in the same vicinity, you can use the new multi building feature to add multiple buildings to the same map. This results in one Map ID that you load, which contains multiple FloorStacks. Each building has its own FloorStack, which contains an array of Floors (floor maps) for that building.
If the buildings are far apart, there are two approaches you could take. The first is to have a control on the page holding that map that loads recreates the MapView with the appropriate ID. Alternatively, you could use the Mappedin MapLibre Overlay, in which you’d use MapLibre to display the outdoor map and embed instances of Mappedin JS into a layer in it.
Might I recommend moving the Mappedin functions from your global scope to a Mappedin variable instead. Having the functions directly in global namespace can easily lead to difficult to diagnose issues due to conflicts or unexpected side effects.