Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accuracy circle is not displayed in some cases #66

Open
julien-deramond opened this issue Dec 30, 2021 · 2 comments
Open

Accuracy circle is not displayed in some cases #66

julien-deramond opened this issue Dec 30, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@julien-deramond
Copy link
Member

julien-deramond commented Dec 30, 2021

Needs more information from Live Objects

@julien-deramond julien-deramond added the bug Something isn't working label Dec 30, 2021
@jacques-lebourgeois
Copy link
Member

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 :

  1. The Accuracy is no more displayed => BUG
  2. The layers selector has one layer : Etablissements => OK
  3. If you check off the Etablissements layer, nothing is now displayed => OK
  4. 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 :)

@jacques-lebourgeois
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants