question

MariaFilip-9109 avatar image
0 Votes"
MariaFilip-9109 asked StevenEdPaler-4288 edited

Azure Maps Indoor dynamic styling not working

Hello,

I followed the tutorial at https://docs.microsoft.com/en-us/azure/azure-maps/tutorial-creator-indoor-maps for setting up an indoor map. I have used the provided map example and followed through all the steps. After finishing the tutorial, I had a working map that dynamically updated its state when I sent a HTTP POST request. This was on the 2nd of January.

The issue is that the map is no longer updating dynamically, even though I have not changed anything. I have already redone the entire tutorial from scratch but it has yielded no results. Using Postman I can see that the state is set by using a HTTP GET request.

I noticed that 5 days ago there was an update to the "Azure Maps Indoor Maps module".

Am I missing something? What should I do?

Regards,
Maria


azure-maps
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MariaFilip-9109
Thank you for reporting what looks like a regression. I will follow the tutorial and try to reproduce your issue.

In the meanwhile did you try to use the oldest version of Azure Maps Indoor Module?

npm i azure-maps-indoor@0.1.0

https://www.npmjs.com/package/azure-maps-indoor/v/0.1.0

Appreciate your time so far.

0 Votes 0 ·

Thank you for your quick response.

I have tried both versions 0.1.0 and 0.1.1 but I received these errors in the console both times:
57782-console-errors-azure-maps.jpg

The lines of code at (index):50 are the following:

  const levelControl = new atlas-indoor.LevelControl({
         position: "top-right",
       });

As a note, when it was working I used the globally hosted Azure Content Delivery Network version of the Azure Maps Indoor module as described in the tutorial.



0 Votes 0 ·

Hello @asergaz ,

Are there any updates related to this issue? Were you able to reproduce it?
Can you suggest me any solution or workaround?

0 Votes 0 ·

@MariaFilip-9109 I couldn't reproduce your issue.
I see below that now is working as expected - Let us know if it happens again.

Thank you so much!

0 Votes 0 ·
MariaFilip-9109 avatar image
1 Vote"
MariaFilip-9109 answered StevenEdPaler-4288 edited

I checked again today and it simply worked without changing anything.

As I mentioned before I followed the tutorial step by step, I have already included the script tag so this was not the problem.
I assume the issue has been fixed on your end in the meantime.

Thank you for your help!

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MariaFilip-9109 please mark this as the answer to this thread so other members from the community cand find it useful.

Thank you so much and happy coding! Reach out if you have other questions.

Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.

0 Votes 0 ·

hello @MariaFilip-9109 di you followed https://docs.microsoft.com/en-us/azure/azure-maps/indoor-map-dynamic-styling tutorial? And also used version 2.0 APIs? cause in my side its not reflecting even if i updated the state
130179-image.png


0 Votes 0 ·
image.png (8.0 KiB)
rbrundritt avatar image
1 Vote"
rbrundritt answered asergaz converted comment to answer

Have you added a script tag to your web app to load the indoor maps javascript and CSS files? These won't be pulled in automatically into your app. https://docs.microsoft.com/en-us/azure/azure-maps/how-to-use-indoor-module

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.