Import a level from a GeoJSON format file
After drawing the footprint of your building from your visit, you can add levels to it.
These levels are not stylized and therefore have no visual rendering, but they are essential for structuring the data on your map.
We present here the method via a GeoJSON format file import.
π Note:
You can also opt for the manual addition method.
π Prepare the .geoJSON file
Before importing the file to Wemap Pro, it is essential to associate all the necessary properties to the level and to each object (in addition to elements such as "type", "ID", "geometry"...) in your GeoJSON.
These must appear in the "properties" section of the file.
E.g.: in the JSON excerpt below (incomplete and non-exhaustive), we find an object with properties "indoor = room" and "level = 0". The latter will therefore be a room associated with level 0 of the building.
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "way/-1617378013332111",
"properties": {
"indoor": "room",
"level": "0",
"id": "way/-1617378013332111"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
3.91720055721,
43.60912475321
],
π» Add a level via importing a .geoJSON file
Your file is ready? You can then proceed with the import to Wemap Pro:
- Access the editing of the building concerned, by clicking on the associated pencil icon
- Click on "+" to add a level
- Select "Import a level from a file (.geojson)"
- Upload the .geojson file from your computer

Once the import is complete, the level and its objects are associated with the building.
The following information is already filled in but can be modified:
- Level name (e.g.: 1st floor)
- Name displayed in the level selector, which appears at the bottom right on the map when a building is selected (e.g.: 1)
- Level value: corresponds to the level on which objects will be visible (e.g.: if value = 1, objects associated with this level will take the value 1 and will therefore be visible on the 1st floor)
-
Check the "Visible" box so that the level displays properly on the map
(e.g.: if you use the same map for different events, but level 2 is not used for one of them, you can uncheck this option to not see this level appear on the map for that event)

You can then access the objects associated with the imported level by clicking on "View objects".