Skip to content

Conversation

@Nortren
Copy link
Contributor

@Nortren Nortren commented Apr 29, 2025

No description provided.

@@ -1,6 +1,6 @@
{
"name": "2gis-maps",
"version": "4.0.4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

и тут

handleTileError.bind(this)();
}
});
}.bind(this));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. а зачем вообще создавать 2 функции, когда достаточно одной, что-то типа validateKeyResponse
  2. давай валидацию перенесем внутрь класса ApiKeyValidator, судя по его названию, этим должен он заниматься, но почему-то сама валидация написана тут

@Nortren Nortren requested a review from kalyanov April 30, 2025 22:08
},

validateKeyResponse: function(map) {
this.map = map;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Странно же в методе валидации запоминать инстанс карты, это надо сделать еще пои инициализации.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, согласен. Тут даже всю сущность смысла нет передавать достаточно только контейнера. Поправил

Copy link
Contributor

@kalyanov kalyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавь еще пэддинг со всех сторон у контейнера с сообщение о ключе, а то прилепает к границам
Screenshot 2025-05-01 at 22 04 18

@EvgenyRodygin EvgenyRodygin self-requested a review May 5, 2025 10:20
@Nortren Nortren merged commit 4469034 into master May 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants