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

Map API script should be loaded only once even for multiple maps on page #14

Open
MaceM8 opened this issue Oct 6, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@MaceM8
Copy link
Collaborator

MaceM8 commented Oct 6, 2021

Mapy cz API script has to be loaded only once at all times.
Currently it is loaded once per MapProvider, which can render one map instance.

  • Implement logic that finds out if API script is already loaded so it is not injected multiple times.
  • Add possibility for each map to "register" in MapProvider with its own config (center, zoom settings, id, etc)
@MaceM8 MaceM8 added the enhancement New feature or request label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant