You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-indoor-module.md
+3-26Lines changed: 3 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,26 +122,9 @@ const map = new atlas.Map("map-id", {
122
122
123
123
To load the indoor map style of the tiles, you must instantiate the *Indoor Manager*. Instantiate the *Indoor Manager* by providing the *Map object*. Your code should look like the following JavaScript code snippet:
124
124
125
-
```javascriptf
126
-
const statesetId = "<statesetId>";
127
-
128
-
const indoorManager = new atlas.indoor.IndoorManager(map, {
129
-
statesetId: statesetId // Optional
130
-
});
131
-
```
132
-
133
-
To enable polling of state data you provide, you must provide the `statesetId` and call `indoorManager.setDynamicStyling(true)`. Polling state data lets you dynamically update the state of dynamic properties or *states*. For example, a feature such as room can have a dynamic property (*state*) called `occupancy`. Your application may wish to poll for any *state* changes to reflect the change inside the visual map. The following code shows you how to enable state polling:
@@ -196,7 +179,7 @@ When you create an indoor map using Azure Maps Creator, default styles are appli
196
179
-`zoom` allows you to specify the min and max zoom levels for your map.
197
180
-`styleAPIVersion`: pass **'2023-03-01-preview'** (which is required while Custom Styling is in public preview)
198
181
199
-
7. Next, create the *Indoor Manager* module with *Indoor Level Picker* control instantiated as part of *Indoor Manager* options, optionally set the `statesetId` option.
182
+
7. Next, create the *Indoor Manager* module with *Indoor Level Picker* control instantiated as part of *Indoor Manager* options.
200
183
201
184
8. Add *Map object* event listeners.
202
185
@@ -240,7 +223,6 @@ Your file should now look similar to the following HTML:
0 commit comments