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

Feature request: Zoom #123

Closed
mihalski opened this issue Jul 27, 2021 · 5 comments
Closed

Feature request: Zoom #123

mihalski opened this issue Jul 27, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@mihalski
Copy link

mihalski commented Jul 27, 2021

I am using the automatic cloud map extractor and the map it returns has a border around it making it rather small.

image

Some way to autosize to the lovelace view or specify a zoom would be helpful.

Thank you for your awesome work.

Regards,
Michal

EDIT: Discovered I could solve it at the map extractor end by adding the folowing to my config:

    map_transformation:
      trim:
        top: 25
        bottom: 25
        left: 15
        right: 15

Now it looks like this:
image

Hope this helps someone else.

@mihalski mihalski changed the title Feature request: Zoom or fit map to view Feature request: Zoom or fit map to view [SOLVED] Jul 27, 2021
@PiotrMachowski PiotrMachowski self-assigned this Jul 27, 2021
@PiotrMachowski PiotrMachowski added the enhancement New feature or request label Jul 27, 2021
@PiotrMachowski PiotrMachowski changed the title Feature request: Zoom or fit map to view [SOLVED] Feature request: Zoom Jul 27, 2021
@PiotrMachowski
Copy link
Owner

Right now I work on possibility to dynamically zoom a map in the lovelace card

@mihalski
Copy link
Author

That would be an excellent enhancement!

@spattinson
Copy link

This is would be awesome my map is just too big for my mobile screen, touching the screen instead of scrolling is easy to do and you get zoned cleanup appearing. I solved this by making predefined_zones the default. having a scaling value for the map would be good - maybe percent rather than px.

@PiotrMachowski
Copy link
Owner

@spattinson check this out: https://community.home-assistant.io/t/xiaomi-vacuum-interactive-map-card/123901/827

@PiotrMachowski
Copy link
Owner

Handled in v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants