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.
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
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?