Skip to content

Commit 4184389

Browse files
committed
remove feature state stuff.
1 parent 22fd92a commit 4184389

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

articles/azure-maps/how-to-use-indoor-module.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -122,26 +122,9 @@ const map = new atlas.Map("map-id", {
122122

123123
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:
124124

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:
134-
135125
```javascript
136-
const statesetId = "<statesetId>";
137-
138126
const indoorManager = new atlas.indoor.IndoorManager(map, {
139-
statesetId: statesetId // Optional
140127
});
141-
142-
if (statesetId.length > 0) {
143-
indoorManager.setDynamicStyling(true);
144-
}
145128
```
146129

147130
## Indoor level picker control
@@ -196,7 +179,7 @@ When you create an indoor map using Azure Maps Creator, default styles are appli
196179
- `zoom` allows you to specify the min and max zoom levels for your map.
197180
- `styleAPIVersion`: pass **'2023-03-01-preview'** (which is required while Custom Styling is in public preview)
198181

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.
200183

201184
8. Add *Map object* event listeners.
202185

@@ -240,7 +223,6 @@ Your file should now look similar to the following HTML:
240223
<script>
241224
const subscriptionKey = "<Your Azure Maps Subscription Key>";
242225
const mapConfig = "<Your map configuration id or alias>";
243-
const statesetId = "<Your statesetId>";
244226
const region = "<Your Creator resource region: us or eu>"
245227
atlas.setDomain(`${region}.atlas.microsoft.com`);
246228
@@ -264,13 +246,8 @@ Your file should now look similar to the following HTML:
264246
265247
const indoorManager = new atlas.indoor.IndoorManager(map, {
266248
levelControl: levelControl, //level picker
267-
statesetId: statesetId // Optional
268249
});
269250
270-
if (statesetId.length > 0) {
271-
indoorManager.setDynamicStyling(true);
272-
}
273-
274251
map.events.add("levelchanged", indoorManager, (eventData) => {
275252
//put code that runs after a level has been changed
276253
console.log("The level has changed:", eventData);
@@ -309,14 +286,15 @@ Learn more about how to add more data to your map:
309286
[Azure Content Delivery Network]: #embed-the-indoor-maps-module
310287
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
311288
[Azure Maps Creator resource]: how-to-manage-creator.md
312-
[Indoor Maps]: https://www.npmjs.com/package/azure-maps-indoor
313289
[Azure Maps service geographic scope]: geographic-scope.md
314290
[azure-maps-indoor package]: https://www.npmjs.com/package/azure-maps-indoor
315291
[Code samples]: /samples/browse/?products=azure-maps
316292
[Create custom styles for indoor maps]: how-to-create-custom-styles.md
317293
[Creator for indoor maps]: creator-indoor-maps.md
318294
[Creator Indoor Maps]: https://samples.azuremaps.com/?sample=creator-indoor-maps
319295
[Drawing package requirements]: drawing-requirements.md
296+
[How to use the Azure Maps map control npm package]: how-to-use-npm-package.md
297+
[Indoor Maps]: https://www.npmjs.com/package/azure-maps-indoor
320298
[map configuration API]: /rest/api/maps-creator/map-configuration?view=rest-maps-creator-2023-03-01-preview&preserve-view=true
321299
[map configuration]: creator-indoor-maps.md#map-configuration
322300
[Style Rest API]: /rest/api/maps-creator/style?view=rest-maps-creator-2023-03-01-preview&preserve-view=true
@@ -326,4 +304,3 @@ Learn more about how to add more data to your map:
326304
[Use Creator to create indoor maps]: tutorial-creator-indoor-maps.md
327305
[visual style editor]: https://azure.github.io/Azure-Maps-Style-Editor
328306
[Webpack]: https://webpack.js.org
329-
[How to use the Azure Maps map control npm package]: how-to-use-npm-package.md

0 commit comments

Comments
 (0)