Map configuration
- Last UpdatedDec 04, 2023
- 1 minute read
You can provide virtual plant projects with maps. Maps have many uses and are shared by players and the XR Instructor.
Maps can do the following:
-
Give an overall vision of the plant.
-
Locate actors (players, items, cameras) in the plant.

The sample project contains a file (initial_conditions.xml) with a basic implementation for the maps.
-
Maps configuration is based on a define of MDSTRING type.
-
The structure of the define must be as shown, and the numberOfMaps must match the number of set elements.
Code example
This is a code example for map configuration.
<define name="simulation.maps" type="mdstring">
<set key="config">
<item key="numberOfMaps" value="6"/>
</set>
<set key="map_0">
<item key="file" value="maps/TOTALE.png"/>
<item key="name" value="Plant Overall Map"/>
<item key="topLeft" value="-906.715 -100 482.293"/>
<item key="topRight" value="407.249 -100 482.293"/>
<item key="bottomLeft" value="-906.715 100 -828.166"/>
<item key="bottomRight" value="407.249 100 -828.166"/>
<item key="size" value="800 800"/>
<item key="angle" value="90"/>
</set>
<!-- ... -->
<set key="map_5">
<item key="file" value="maps/Section05-06.png"/>
<item key="name" value="Section 05-06 Map"/>
<item key="topLeft" value="-777.163 -100 -13.417"/>
<item key="topRight" value="-327.547 -100 -13.417"/>
<item key="bottomLeft" value="-777.163 100 -461.632"/>
<item key="bottomRight" value="-327.54 100 -461.632"/>
<item key="size" value="800 800"/>
<item key="angle" value="90"/>
</set>
</define>