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

Customize icons / avatars shown on Map #33

Closed
Zefau opened this issue Aug 16, 2020 · 5 comments
Closed

Customize icons / avatars shown on Map #33

Zefau opened this issue Aug 16, 2020 · 5 comments
Assignees
Labels
feature 🌟 Feature request or enhancement Module Map Module Map

Comments

@Zefau
Copy link
Owner

Zefau commented Aug 16, 2020

No description provided.

@Zefau Zefau added feature 🌟 Feature request or enhancement Module Map Module Map labels Aug 16, 2020
@Zefau Zefau added this to the ROADMAP v1.0.0 milestone Aug 16, 2020
@Zefau Zefau self-assigned this Aug 16, 2020
@Zefau
Copy link
Owner Author

Zefau commented Sep 7, 2020

@braindead1 are you using the Map Widget?

1.0.0-beta.16 implements avatars now. You may parse an image to a base64 and use it in the icon input (including iconStyle when using { "default": { ...style... }}) and it will be applied as an avatar in the Map Widget:

image

Of course, material icons can be used as well (including styling).

@braindead1
Copy link

I don't track my family member. Therefore I do not use the widget. Can you provide an example of which states are needed in ioBroker. I can then set them up manually and give it a short test.

@Zefau
Copy link
Owner Author

Zefau commented Sep 11, 2020

Much appreciated!

You only need to configure a device with position state, which holds the gps coordinates, e.g.:

image
(location state is not necessary)

image

@braindead1
Copy link

Position is working in v1.0.0-beta.26. I was not able to test icon and styling as I did not understand which JSON is expected.

@Zefau
Copy link
Owner Author

Zefau commented Sep 11, 2020

Great, thank you!

I forgot to mention the JSON. This would be, e.g.

{
   "default":{
      "backgroundColor":"#a00"
   }
}

@Zefau Zefau closed this as completed Sep 11, 2020
@Zefau Zefau added release and removed verify-fix labels Sep 12, 2020
@Zefau Zefau removed this from the ROADMAP v1.0.0 milestone Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🌟 Feature request or enhancement Module Map Module Map
Projects
None yet
Development

No branches or pull requests

2 participants