[Bug?] Map misaligned on opening

Hello there :slight_smile:

On a fresh installation, when we’ve set the location of our house + one or more other areas, and then open the map, it displays at the minimum zoom level:

Here, I would have found it useful if the zoom adjusted to display my points as clearly as possible:

Is this intentional or an oversight?

In the first case, I would be very happy to know the rationale behind this choice.
In the second case, I would be very happy to open a GitHub issue and fix it.
(Either way, I’m happy :smiley: )

Best regards,
Alex.

1 Like

Hi @GziAzman and welcome to Gladys :slight_smile:

It seems to me it should do as you describe
 (zoom in on the created points)

Absolutely, I’d be happy to have an issue and a PR :smiley:

Thanks!

@pierre-gilles Thank you for your reply.
The PR is here

(Note that this is my very first PR on GitHub, so if I did it wrong, please don’t hesitate to let me know).

Regarding the feature, I initially thought it was a simple oversight. But looking at the code, everything was already in place. However, only the « users Â» markers were taken into account. That’s why I opened this discussion, thinking there was a justification for that.

3 Likes

Thanks for the PR @GziAzman, I just tested it and it works perfectly :slight_smile:

It’s merged and it’ll be included in the next Gladys release!

1 Like

It’s available in Gladys Assistant 4.38.1:

I’m closing this thread!

1 Like