Accuracy circle is not displayed in some cases
Needs more information from Live Objects
Hello,
Yes, here are some information.
Based on Storybook,
In the story https://orange-opensource.github.io/IOT-Map-Component/?path=/story/iot-map-manager--clusters
If you replace data in Knobs with those data :
[ { "id": "s5", "location": { "lat": 44.895, "lng": 4.89 }, "shape": { "type": 1, "anchored": true, "plain": false, "accuracy": 200, "color": "#CCCCCC" }, "inner": { "icon": "iotmap-icons-bluetooth", "color": "black" }, "layer": "Etablissements", "status": "inactive" } ]
The particularity of that data is that there is only one layer (there could be more than one marker in it)
Then you can observe that :
- The Accuracy is no more displayed => BUG
- The layers selector has one layer : Etablissements => OK
- If you check off the Etablissements layer, nothing is now displayed => OK
- Switch back the Etablissements layer, then the Accuracy is displayed and you can notice that now there are two layers in the layers selector (Etablissements and Accuracy, that is the default accuracy layer configured for the story)
Suomi and Jacques :)
NB : in LiveObjects, we have a temporary workaround by calling
this.iotMapMarkerManager.markersObjects[markerId].updateAccuracyDisplay(
['default'],
true
);
on each marker after any new map display