# \[Bug?\] Mauvais ajustement de la carte à l'ouverture

**URL:** <https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772>\
**Category:** Développement\
**Tags:** bug\
**Created:** [Mars 15, 2024, 11:27 UTC](https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772 "2024-03-15T23:27:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GziAzman](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gziazman/32/15671_2.png) [@GziAzman](https://community.gladysassistant.com/u/GziAzman)\
**Post date:** [Mars 15, 2024, 11:27 UTC](https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772/1 "2024-03-15T23:27:33Z")

</div>

Bonjour à vous 🙂

Sur une installation fraiche, lorsqu’on a défini l’emplacement de notre maison + une ou plusieurs autres zones, et qu’on ouvre la map par la suite, celle-ci s’affiche avec un zoom minimal:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/2afaca56a5f0aa057cb23cebfa93acb4a6b6ccf9.png)

Ici, j’aurais trouvé pratique que le zoom s’effectue de sorte à afficher mes points le plus distinctement possible:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/537d8aa2559e4fbc19fefcccd7981560f5a8a98f.jpeg)

Est-ce voulu ou est-ce un oublie ?

Dans le premier cas, je serais très heureux de connaître la justification derrière ce choix.  
Dans le second, je serais très heureux d’ouvrir une issue Github, et de la fixer.  
(Dans les deux cas je suis heureux quoi 😃 )

Bien à vous,  
Alex.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Mars 18, 2024, 8:26 UTC](https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772/2 "2024-03-18T08:26:12Z")

</div>

Salut @GziAzman et bienvenue sur Gladys 🙂

Il me semble que ça devrait faire comme tu décris… (zoomer sur les points créé)

> [@GziAzman](#):
>
> Dans le second, je serais très heureux d’ouvrir une issue Github, et de la fixer.

Carrément je veux bien une issue et une PR 😃

Merci !

---

<div class="post-metadata">

**Author:** ![GziAzman](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gziazman/32/15671_2.png) [@GziAzman](https://community.gladysassistant.com/u/GziAzman)\
**Post date:** [Mars 18, 2024, 9:04 UTC](https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772/3 "2024-03-18T09:04:52Z")

</div>

@pierre-gilles Merci pour ta réponse.  
La PR est ici

> <https://github.com/GladysAssistant/Gladys/pull/2042>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> CF #2041
> 
> \*\*Note:\*\*
> This is my first pull request ever, if I made a mistake, I'd be glad if you direct me 🙂

(A noter que c’est ma toute première PR sur github, donc si je m’y suis mal pris, hésitez pas à me le faire savoir).

En ce qui concerne la feature, j’ai d’abord pensé à un oublie simple. Mais en regardant le code, tout était déjà prêt. Mais seuls les markers «&nbsp;users&nbsp;» étaient pris en compte. C’est pour ça que j’ai ouvert cette discussion, pensant qu’il y avait une justification à ça.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Mars 21, 2024, 10:23 UTC](https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772/4 "2024-03-21T10:23:11Z")

</div>

Merci pour la PR @GziAzman, je viens de tester et ça marche nickel 🙂

C’est mergé et ça partira dans la prochaine version de Gladys !

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Mars 25, 2024, 12:35 UTC](https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772/5 "2024-03-25T12:35:39Z")

</div>

C’est disponible dans Gladys Assistant 4.38.1 :

> [@Gladys Assistant 4.38.1 : Streaming caméra chiffré sur iPhone, nouveau bouton IKEA](https://community.gladysassistant.com/t/gladys-assistant-4-38-1-streaming-camera-chiffre-sur-iphone-nouveau-bouton-ikea/8795):
>
> Salut à tous ! Nouvelle version de Gladys aujourd’hui : Gladys Assistant 4.38.1 partying_face C’est une version qui apporte pas mal de correctifs : Il est maintenant possible d’utiliser le streaming de caméra chiffré de bout en bout sur iOS !! Apple a (enfin) sorti l’API MediaSource sur iOS (qui était disponible sur Safari et iPadOS depuis longtemps), ce qui nous permet désormais de faire du streaming de flux vidéo de caméra, chiffré de bout en bout sur iPhone. OpenWeather: Correction d’un…

Je ferme ce sujet !

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Mars 25, 2024, 12:35 UTC](https://community.gladysassistant.com/t/bug-mauvais-ajustement-de-la-carte-a-louverture/8772/6 "2024-03-25T12:35:42Z")

</div>


