I have a requirement to show more than one building indoor map on a single Azure Map. Does Azure Map's Indoor Module support adding more than one tileset to a map?
A single building's indoor map is created using the Azure Indoor Map Creator which results in a single tilesetId. This is added to an Azure Map using atlas.indoor.IndoorManager. I have two different tilesetIds that work when added to a map on their own, but I'm unable to have both visible and selectable individually.
This is the code I use but only the first tileset added is ever shown.
// building 1
const levelControl = new atlas.control.LevelControl({
position: "top-right",
});
const indoorManager = new atlas.indoor.IndoorManager(map, {
levelControl: levelControl,
tilesetId: tilesetId
});
// building 2
const levelControl2 = new atlas.control.LevelControl({
position: "top-right",
});
const indoorManager2 = new atlas.indoor.IndoorManager(map, {
levelControl: levelControl2,
tilesetId: tilesetId2,
});
The indoor manager class itself only appears to support a single tileset so my assumption is that I need a class per tileset, each with its own level control. However, this only ever renders the first indoor manager. I've swapped the tilesets around to confirm this.
The indoor manager currently does not support multiple tilesets. To get two buildings showing, you would need to append the conversionId of the second building to an existing dataset. You can then create a new tileset that contains both buildings.
Thanks,
Brendan