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

New events for MapPlugin #1369

Closed
Rusachok opened this issue Jul 10, 2024 · 2 comments
Closed

New events for MapPlugin #1369

Rusachok opened this issue Jul 10, 2024 · 2 comments
Labels
Milestone

Comments

@Rusachok
Copy link

Describe the feature

https://vi-tour.ru/s/qyjtbuht/
Using MapPlugin.
After maximizing plan I want to do it big, with zoom 100. And after minimizing - revert zoom to 40%.

It would be great, if you add an event to listen for widget maximize/minimize and a method to change to zoom level

Alternatives you've considered

No response

Additional context

No response

@mistic100
Copy link
Owner

Example usage

map.addEventListener('view-changed', ({ view }) => {
                if (view === 'maximized') {
                    map.setZoom(100);
                } else if (view === 'normal') {
                    map.setZoom(40);
                }
            });

Copy link

This feature/bug fix has been released in version 5.8.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants