Azure indoor maps trigger warning in a room

elperro 1 Reputation point
2021-11-15T09:52:01.347+00:00

Hi,

In the sample application "Live Maps" they show an example to send a "warning" to azure maps indoor (for exampe: if a door is open in a building).
I can't figure out how they do this. So far, I am able to create a stateset and to update the stateset style rules in case a room is occupied. But I don't see a possibility
to make a warning icon blink in a room in case an issue is detected in a room. Could somebody please point me in the right direction?

Our usecase is to display a warning on a map in case a mouse got caught in a LORA connected mousetrap.

Regards,

Raymond

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

2 answers

Sort by: Most helpful
  1. Brendan Co 746 Reputation points Microsoft Employee
    2021-11-17T00:08:20.85+00:00

    Hi @elperro

    We have a bunch of SDK samples available here to add different types of layers or animation on top of the Map. Specifically you might want to look at HTML Marker Pulse Animation

    0 comments No comments

  2. elperro 1 Reputation point
    2021-11-18T15:11:30.983+00:00

    Hi,

    I found a solution. I was aware of the "HTML Marker Pulse Animation" and I used that one in our pilot. But I was strugling to update my map based on sensor data.

    I ended up using websockets. So, my "azure maps webapp" connects to a websocket aware node.js server. This server is exposed by a REST API (using featherjs). Once I send my sensor data to this API, the message will be forwared real-time to my azure maps app. In my code I call the Web Feature Service (WFS) API in order to get the right coordinates of my sensor (located in the featureCollection) to inject the HTML Marker Pulse Animation. I guess you could achieve similar results using Azure event grid etc.

    Regards,

    Raymond

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.