Cannot keep markers in FixedLayout or FloorPlan Widgets

I am trying to display markers for events on either a Fixed Layout or a Floor Plan widget.

However, when receiving events on the topic associated with the widget, I cannot keep markers for different keys between messages.

That means that given a FixedLayout widget linked to a topic /marker_pos,
sending the following messages:
{ “key”: “marker1”, “pos”: <geoJSON> },
{ “key”: “marker2”, “pos”: <geoJSON> }

systematically clears the widget of previous markers, even with the “clear data on arrival” option toggled off.

Is this the desired behavior of these widgets, or am I misinterpreting their documentation?

  • This topic was modified 4 years, 6 months ago by dsprinzen.
Posted: May 15, 2020 at 10:50 pm
Replies: 1
May 15, 2020
Posted by Ken

The FixedLayout works OK for me.  Did you set the label property?

Here is the data I sent:
{ "key": "marker1", "pos": {
        "type": "Point",
        "coordinates": [
            150,
            150
        ]
    }
}
{ "key": "marker2", "pos": {
        "type": "Point",
        "coordinates": [
            150,
            100
        ]
    }
}

Since the “key” property is different, I get two icons in my FixedLayout.  If the “key” property is the same then the icon will move and the old one goes away.

  • This reply was modified 4 years, 6 months ago by Ken.
  • This reply was modified 4 years, 6 months ago by Ken.
  • This reply was modified 4 years, 6 months ago by Ken.
  • This reply was modified 4 years, 6 months ago by Ken.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
© Vantiq 2024 All rights reserved  •  Vantiq Corporation’s Privacy Policy and Cookie Policy