ddubrava / angular-yandex-maps

🗺️ Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API
https://ddubrava.github.io/angular8-yandex-maps/#/
MIT License
57 stars 7 forks source link

feat: add support for dynamic configuration #211

Closed ddubrava closed 1 year ago

ddubrava commented 1 year ago

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Closes #183

What is the new behavior?

YaConfig is an observable and YaApiLoaderService supports dynamic changes of the configuration.

Does this PR introduce a breaking change?

ddubrava commented 1 year ago

A lot of tests were broken due to this significant change

if (window.ymaps) {
  delete (window as any).ymaps;
}

and at the same time since YaApiLoaderService wasn't mocked