Azure Maps Indoor dynamic styling not working

Scott Kovacic 146 Reputation points
2021-05-19T20:04:45.75+00:00

Hello,

I went through the tutorial at https://learn.microsoft.com/en-us/azure/azure-maps/indoor-map-dynamic-styling for implementing dynamic styling for Creator (Preview) indoor maps. I have used the provided map example and followed through all the steps. After finishing the tutorial, I have a map but it does not dynamically change with the updated HTTP POST request.

Is there a specific area I should check? html? Postman API calls? eventTimestamp (JSON) in the Body?

The UNIT id is correct. No errors.

Thanks,

Scott

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
559 questions
0 comments No comments
{count} vote

Accepted answer
  1. rbrundritt 13,526 Reputation points Microsoft Employee
    2021-05-19T21:28:09.953+00:00

    Did you set your statesetId value in the following code block in your web app:

    const tilesetId = "<tilesetId>";
    const statesetId = "<statesetId>";
    
    const indoorManager = new atlas.indoor.IndoorManager(map, {
        tilesetId: tilesetId,
        statesetId: statesetId // Optional
    });
    
    if (statesetId.length > 0) {
        indoorManager.setDynamicStyling(true);
    }
    

0 additional answers

Sort by: Most helpful